/* ==========================================================================
   VFotos Theme
   Alle Farben und Abstände stehen ganz oben als Variablen.
   Wer etwas ändern will, ändert dort und nirgends sonst.
   ========================================================================== */

/* --- Schriften -----------------------------------------------------------
   Die Dateien liegen in user/themes/vfotos/fonts/
   Erwartet werden die Variable-Font-Dateien von Google Fonts.
   woff2 zuerst, ttf als Rückfall, damit beide Downloadvarianten laufen.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Variable.woff2') format('woff2-variations'),
       url('../fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2-variations'),
       url('../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-Variable.woff2') format('woff2-variations'),
       url('../fonts/Jost-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variablen ----------------------------------------------------------- */

:root {
  /* Markenfarben */
  --gruen:        #7a976e;
  --gruen-tief:   #46583e;
  --gruen-nacht:  #2b3626;
  --gruen-hell:   #d0ddca;
  --beere:        #b03558;
  --rosa:         #ecacbf;
  --creme:        #faf0ec;
  --tinte:        #131711;

  /* Abgeleitete Flächen */
  --papier:       #fdfbf9;
  --sand:         #f5ece6;
  --linie:        #e6ddd6;
  --text:         #3a3a34;
  --text-leise:   #7d7a72;

  /* Typografie */
  --serif:  'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --grotesk:'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  /* Maße */
  --breite:        1180px;
  --breite-schmal: 700px;
  --rand:          clamp(1.25rem, 5vw, 3rem);
  --luft:          clamp(4rem, 9vw, 7.5rem);
  --radius:        14px;
  --radius-klein:  8px;
}

/* --- Grundlagen ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--grotesk);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--beere);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--tinte);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.vorlauf {
  font-family: var(--grotesk);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gruen);
  margin: 0 0 1.4rem;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

/* --- Aufbau -------------------------------------------------------------- */

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.huelle--schmal { max-width: var(--breite-schmal); }

.abschnitt { padding-block: var(--luft); }
.abschnitt--creme  { background: var(--creme); }
.abschnitt--sand   { background: var(--sand); }
.abschnitt--gruen  { background: var(--gruen-tief); color: #fff; }
.abschnitt--gruen h2,
.abschnitt--gruen h3 { color: #fff; }
.abschnitt--gruen .vorlauf { color: var(--gruen-hell); }

.mitte { text-align: center; }
.mitte p { margin-inline: auto; }

/* --- Schaltflächen ------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--grotesk);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.knopf--gruen  { background: var(--gruen); color: #fff; }
.knopf--gruen:hover  { background: var(--gruen-tief); }

.knopf--beere  { background: var(--beere); color: #fff; }
.knopf--beere:hover  { background: #94284a; }

.knopf--offen  { background: transparent; color: var(--tinte); border-color: var(--linie); }
.knopf--offen:hover  { border-color: var(--tinte); }

.abschnitt--gruen .knopf--offen { color: #fff; border-color: rgba(255,255,255,.45); }
.abschnitt--gruen .knopf--offen:hover { border-color: #fff; }

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.mitte .knopfreihe { justify-content: center; }

/* --- Kopfbereich --------------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 249, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf--transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.kopf__logo img { height: var(--logo-hoehe, 34px); width: auto; }

.kopf__logo--text {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--tinte);
  text-decoration: none;
}

.navi {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navi a {
  font-size: .95rem;
  text-decoration: none;
  color: var(--text);
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.navi a:hover { color: var(--tinte); }
.navi .aktiv > a { color: var(--tinte); border-bottom-color: var(--gruen); }

.sprachen {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.sprachen a { text-decoration: none; }
.sprachen .aktiv { color: var(--tinte); font-weight: 500; }
.sprachen span[aria-hidden] { color: var(--linie); }

.menue-schalter {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--tinte);
}

@media (max-width: 900px) {
  .menue-schalter { display: block; }
  .kopf__rechts {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    padding: 1.5rem var(--rand) 2rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .kopf__rechts.offen { display: flex; }
  .navi { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (min-width: 901px) {
  .kopf__rechts { display: flex; align-items: center; gap: 1.9rem; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 820px);
  margin-top: -76px;
  padding-top: 76px;
  overflow: hidden;
}

.hero__bild {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bildfokus, center);
}

/* Weicher Übergang ins Cremeweiß, damit der Text immer lesbar bleibt */
.hero__schleier {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(250,240,236,0)   0%,
    rgba(250,240,236,.30) 42%,
    rgba(250,240,236,.86) 74%,
    var(--papier)         100%
  );
}

.hero__innen {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero__text { max-width: 46rem; }

.hero .lead { max-width: 34rem; }

.marke {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gruen-tief);
  margin-bottom: 1.5rem;
}

/* --- Bildstreifen -------------------------------------------------------- */

.streifen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.15rem;
}

.werk {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 5;
  background: var(--sand);
}

.werk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}

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

.werk__band {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.15rem 1.1rem;
  background: linear-gradient(to top, rgba(19,23,17,.72), rgba(19,23,17,0));
  color: #fff;
}

.werk__art {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: .25rem;
}

.werk__titel {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

/* --- Karten -------------------------------------------------------------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.karte__bild { aspect-ratio: 4 / 3; background: var(--sand); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }

.karte__text { padding: 1.6rem 1.6rem 1.8rem; }
.karte__text h3 { margin-bottom: .5rem; }
.karte__text p { font-size: .97rem; color: var(--text-leise); }

.karte__mehr {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: .92rem;
  color: var(--gruen-tief);
  border-bottom: 1px solid var(--gruen-hell);
  padding-bottom: 2px;
  text-decoration: none;
}
.karte__mehr:hover { border-bottom-color: var(--gruen-tief); }

/* Vorteilskarten ohne Bild */
.vorteil {
  background: var(--creme);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.8rem;
}
.vorteil__zeichen {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-klein);
  background: var(--rosa);
  color: var(--tinte);
  margin-bottom: 1.2rem;
}
.vorteil__zeichen svg { width: 21px; height: 21px; }
.vorteil h3 { font-size: 1.3rem; }
.vorteil p { font-size: .97rem; color: var(--text-leise); margin: 0; }

/* --- Zweispalter --------------------------------------------------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.duo--gedreht .duo__bild { order: -1; }

@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
  .duo--gedreht .duo__bild { order: 0; }
}

.duo__bild img { border-radius: var(--radius); }

.duo__bild {
  position: relative;
}

.duo__plakette {
  position: absolute;
  left: -1rem;
  bottom: -1rem;
  background: var(--beere);
  color: #fff;
  padding: .9rem 1.4rem;
  border-radius: var(--radius-klein);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.1;
}
.duo__plakette small {
  display: block;
  font-family: var(--grotesk);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}

/* --- Referenzen ---------------------------------------------------------- */

.marken {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.marken li {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: rgba(255,255,255,.9);
}

.marken img {
  height: 34px;
  width: auto;
  opacity: .85;
  filter: brightness(0) invert(1);
}

/* --- Newsletter ---------------------------------------------------------- */

.eintrag {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.eintrag input[type="email"] {
  flex: 1 1 320px;
  max-width: 380px;
  padding: .85rem 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--papier);
  font-family: var(--grotesk);
  font-size: .98rem;
  color: var(--tinte);
}

.eintrag input::placeholder { color: var(--text-leise); }

.zustimmung {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-leise);
  text-align: left;
}
.zustimmung input { margin-top: .25rem; flex-shrink: 0; }

/* --- Fußbereich ---------------------------------------------------------- */

.fuss {
  background: var(--gruen-nacht);
  color: rgba(255,255,255,.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}

.fuss a { color: rgba(255,255,255,.78); text-decoration: none; }
.fuss a:hover { color: #fff; }

.fuss__oben {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .fuss__oben { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fuss__oben { grid-template-columns: 1fr; }
}

.fuss__marke img { height: 44px; filter: brightness(0) invert(1); opacity: .92; }
.fuss__marke p { margin-top: 1rem; font-size: .9rem; opacity: .7; max-width: 24ch; }

.fuss h4 {
  color: #fff;
  font-family: var(--grotesk);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .6rem; }

.fuss__unten {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  opacity: .72;
}

.fuss__rechtliches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sozial { display: flex; gap: .6rem; }
.sozial a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-klein);
}
.sozial a:hover { border-color: rgba(255,255,255,.7); }
.sozial svg { width: 17px; height: 17px; }

/* --- Kleinkram ----------------------------------------------------------- */

.nur-lesegeraet {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.springmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinte);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.springmarke:focus { left: 0; }
