
/*
 * jaraframes PRIVAT
 * Version 1.2 – 08.10.2026
 * Albumdesign nach öffentlicher Hauptseite V1.0
 */

:root {
  --paper: #FAF9F5;
  --ink: #20201e;
  --muted: #77746f;
  --gold: #E5B63D;
  --blue: #AFC9D6;
  --line: rgba(32,32,30,.15);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(1500px, calc(100% - 64px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

/* LOGO */

.head {
  padding: 42px 0 28px;
}

.brand {
  display: grid;
  justify-items: center;
  width: max-content;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  font-size: 34px;
  color: var(--gold);
}

.word {
  font-size: 30px;
  letter-spacing: .22em;
}

.tag {
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: .29em;
  color: var(--muted);
}

/* LOGIN */

.login {
  width: min(560px, 100%);
  margin: 10vh auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.32);
}

.gold {
  width: 42px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--gold);
}

.login h1 {
  margin: 0 0 10px;
  font-size: 48px;
}

.login p {
  color: var(--muted);
}

.login label {
  display: block;
  margin: 30px 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.login-row {
  display: flex;
  gap: 10px;
}

.login input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #c9c5bc;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
}

.login button {
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.error {
  margin-top: 12px;
  color: #8b2d2d;
}

.back, .logout {
  color: #397ea1;
  text-decoration: none;
  font-size: 14px;
}

/* SEITENKOPF */

.private-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.private-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
}

.private-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.logout {
  margin-bottom: 5px;
}

/* ALBUMRASTER */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 36px 0 60px;
  align-items: stretch;
}

/* ALBUMKARTEN */

.card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 300px;
  min-height: 0;
  overflow: hidden;

  border: 1px solid rgba(144,177,190,.38);
  border-radius: 16px;

  background: linear-gradient(
    105deg,
    rgba(229,239,243,.94),
    rgba(237,245,247,.9)
  );

  text-decoration: none;
  color: var(--ink);

  box-shadow: 0 1px 0 rgba(0,0,0,.02);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
  border-color: rgba(144,177,190,.55);
}

/* FOTOCOLLAGE */

.collage {
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
  background: #d9d6ce;
}

.collage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;

  transition: transform 750ms cubic-bezier(.22,.61,.36,1);
}

.collage img:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.collage img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.collage img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.collage img:nth-child(n+4) {
  display: none;
}

.card:hover .collage img {
  transform: scale(1.035);
}

/* INFORMATIONSBEREICH */

.card .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 18px 18px 16px;
  color: var(--ink);
}

/* ALBUMTITEL */

.card .info h2,
.card .info h2.jf-album-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 2.25vw, 35px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: normal;
  color: var(--ink);
  hyphens: auto;
}

/* HAUPTTITEL: KLASSENFOTOS / PICKNICK */

.card .info h2 .jf-title-main {
  display: block;
  margin: 0;
  font: inherit;
  color: var(--ink);
}

/* KLEINERE KLASSENBEZEICHNUNG */

.card .info h2 .jf-title-class {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72em;
  font-weight: 400;
  line-height: 1.18;
  color: var(--muted);
  hyphens: none;
  overflow-wrap: normal;
}

/* WEITERE ALBUMBESCHREIBUNGEN */

.card .info p {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.28;
  color: var(--muted);
}

/* DATUM UND FOTOANZAHL */

.card .info .meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin-top: auto;
  margin-bottom: 10px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.card .info .meta > div:first-child:not(:last-child)::after {
  content: " · ";
  white-space: pre;
}

/* ALBUMLINK: NUR DIREKTES SPAN */

.card .info > span:not(.jf-planned-status) {
  display: inline-block;
  color: #397ea1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

/* VORBEREITETE ALBEN */

.card.jf-planned {
  cursor: default;
}

.card.jf-planned:hover {
  transform: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  border-color: rgba(144,177,190,.38);
}

.jf-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: linear-gradient(
    135deg,
    #e8e6de 0%,
    #e4e9e9 55%,
    #dce9ee 100%
  );
  color: #92918b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  text-align: center;
}

.card .info > .jf-planned-status {
  display: inline-block;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.3;
}

/* LEERE ÜBERSICHT */

.empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--blue);
  text-align: center;
  color: var(--muted);
}

/* FOOTER */

footer,
.jf-private-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

footer a,
.jf-private-footer a {
  margin-left: auto;
  color: inherit;
}

/* TABLET */

@media (min-width: 761px) and (max-width: 1050px) {

  .shell {
    width: calc(100% - 40px);
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 270px auto;
    height: auto;
    min-height: 420px;
  }

  .collage,
  .jf-placeholder {
    height: 270px;
  }

  .card .info {
    padding: 24px 22px 20px;
    min-height: 170px;
    overflow: visible;
  }

  .card .info h2,
  .card .info h2.jf-album-title {
    font-size: 32px;
    line-height: 1.14;
  }

  .card .info p {
    font-size: 17px;
  }
}

/* MOBIL */

@media (max-width: 760px) {

  .shell {
    width: calc(100% - 28px);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 285px auto;
    height: auto;
    min-height: 420px;
  }

  .collage,
  .jf-placeholder {
    height: 285px;
  }

  .card .info {
    padding: 20px;
    min-height: 170px;
    overflow: visible;
  }

  .card .info h2,
  .card .info h2.jf-album-title {
    font-size: 31px;
    line-height: 1.14;
    overflow-wrap: break-word;
  }

  .card .info p {
    font-size: 16px;
    line-height: 1.4;
  }

  .private-head h1 {
    font-size: 24px;
  }

  .private-head p {
    font-size: 15px;
  }

  .login {
    margin: 4vh auto;
    padding: 28px;
  }

  .login-row {
    flex-direction: column;
  }

  .login-row button {
    padding: 13px;
  }

  .private-head {
    align-items: flex-start;
  }
}
