/* =========================================================
   bracai – Brazilian Açaí
   WordPress-Theme · reines HTML/CSS, kein JavaScript
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "GT Eesti Display";
  src: url("../fonts/GT-Eesti-Display-Medium.woff2") format("woff2"),
       url("../fonts/GT-Eesti-Display-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Eesti Text";
  src: url("../fonts/GT-Eesti-Text-Book.woff2") format("woff2"),
       url("../fonts/GT-Eesti-Text-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --green: #00370f;       /* Dunkelgrün – Text, Logo */
  --yellow: #e6e9bc;      /* Hellgelb – Flächen, Akzente (Brand-Vorgabe) */
  --cream: #f3efe6;       /* Creme – Hintergrund */
  --white: #ffffff;

  --font-display: "GT Eesti Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "GT Eesti Text", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(24px, 5vw, 72px);   /* seitlicher Abstand */
  --max: 1200px;                    /* max. Inhaltsbreite */
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.45;
  color: var(--green);
  background: var(--cream);
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-family: var(--font-display); font-weight: 500; }

ul { margin: 0; padding: 0; list-style: none; }

/* Inhalt zentrieren */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Nicht umbrechen (z. B. „(m/w/d)“ in Stellentiteln) */
.nobr { white-space: nowrap; }

/* Nur für Screenreader */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding-top: clamp(20px, 3vw, 44px);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: clamp(120px, 14vw, 190px); }
.header--light { color: var(--yellow); }

.back {
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.back::before { content: "\2190\00a0\00a0"; text-decoration: none; }
.back:hover { text-decoration: none; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Mobil: Position 15% – Blätter ragen nur rechts leicht rein, Text links bleibt frei */
  background: #dfe0d6 url("../img/hero-bg-mobile.jpg") 15% center / cover no-repeat;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "visual" "note";
  gap: 32px;
  padding-top: 120px;
  padding-bottom: 56px;
}
.hero h1 { grid-area: title; }
.hero-visual { grid-area: visual; }
.hero-note { grid-area: note; }
.hero h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  letter-spacing: -0.01em;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: min(70vw, 300px);
  filter: drop-shadow(0 30px 40px rgba(0, 40, 10, 0.25));
}
.hero-note strong { display: block; }

/* Jobs-Button (runder Sticker) */
.jobs-badge {
  position: absolute;
  top: 34%;
  right: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 12vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  text-decoration: none;
  transform: rotate(-15deg);
  box-shadow: 0 24px 40px rgba(0, 40, 10, 0.2);
  transition: transform 0.2s ease;
}
.jobs-badge:hover { transform: rotate(-8deg) scale(1.05); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--yellow { background: var(--yellow); }
.section--green { background: var(--green); color: var(--yellow); }
.section--cream { background: var(--cream); }

.section h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 0.7em; }
.section h3 { font-size: 20px; margin-bottom: 0.9em; }

/* Vorteile (3 Spalten) */
.features {
  display: grid;
  gap: 48px 40px;
}
.feature img { width: auto; height: 68px; margin-bottom: 40px; }
.feature h3 { margin-bottom: 0.7em; }

/* Was ist Açaí? */
.about {
  display: grid;
  gap: 32px 48px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.checklist img { width: 22px; flex: none; margin-top: 2px; }

/* Team-Teaser */
.team { position: relative; }
.team .wrap {
  display: grid;
  gap: 40px;
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: 0;
}
.team-text h2 { font-size: 20px; margin-bottom: 1.2em; }
.team-text p { max-width: 32ch; }
.team-text a { text-underline-offset: 4px; }
.team-text a:hover { text-decoration: none; }
.team-photo {
  position: relative;
  margin: 0 calc(-1 * var(--pad));
}
.team-photo img { width: 100%; }
.team-photo small {
  position: absolute;
  top: 12px; right: 12px;
  padding: 10px 5px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(0, 40, 10, 0.65);
  border-radius: 999px;
  writing-mode: vertical-rl;
}

/* ---------- Unterseiten: Jobs ---------- */
.hero-jobs {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: var(--yellow);
  background:
    linear-gradient(rgba(0, 30, 10, 0.3), rgba(0, 30, 10, 0.3)),
    #1b3a1e url("../img/jungle.jpg") center / cover no-repeat;
}
.hero-jobs .wrap {
  padding-top: 180px;
  padding-bottom: clamp(48px, 8vw, 110px);
}
.hero-jobs h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  margin-bottom: 0.9em;
}
.hero-jobs p { max-width: 36ch; }
.hero-jobs strong { color: var(--white); }

.intro p { max-width: 62ch; }

.joblist li { border-top: 2px dotted var(--green); }
.joblist li:last-child { border-bottom: 2px dotted var(--green); }
.joblist a {
  display: block;
  padding: 18px 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  text-decoration: none;
}
.joblist a::after { content: "\00a0\00a0\2192"; }
.joblist a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Unterseiten: Stellenanzeige ---------- */
.hero-job {
  background: var(--yellow);
}
.hero-job .wrap {
  padding-top: 140px;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-job h1 { font-size: clamp(36px, 6vw, 72px); }
.hero-job .subtitle {
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.2;
  margin: 0.2em 0 0.9em;
}

.job { max-width: 78ch; }
.job h2 { font-size: 24px; margin: 2.2em 0 1em; }
.job ul { margin-bottom: 1em; }
.job li { position: relative; padding-left: 18px; }
.job li::before { content: "\2022"; position: absolute; left: 0; }

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-display);
  text-decoration: none;
  transition: background 0.2s ease;
}
.button:hover { background: #d9dda6; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--yellow);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  font-size: 15px;
  line-height: 1.5;
}
/* Wellenkante oben – wie in der Vorlage: runde "Bisse" von oben in die gelbe Fläche.
   Verhältnis Periode : Tiefe = 46 : 10 (aus dem PDF). Radius r = (p²/4 + t²) / (2t). */
.footer {
  --wave-p: 60px;      /* Periode  */
  --wave-t: 13px;      /* Tiefe    */
  --wave-r: 41.1px;    /* Radius   */
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * var(--wave-t));
  height: var(--wave-t);
  background:
    radial-gradient(circle at 50% calc(var(--wave-t) - var(--wave-r)),
      transparent calc(var(--wave-r) - 0.5px), var(--yellow) calc(var(--wave-r) + 0.5px))
    0 0 / var(--wave-p) var(--wave-t) repeat-x;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  align-items: start;
}
.footer-seal { grid-column: 1 / -1; margin-bottom: 8px; }
.footer-seal img { width: 88px; }
.footer h4 { font-size: 15px; margin-bottom: 0.4em; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hours { display: grid; grid-template-columns: auto auto; gap: 0 20px; white-space: nowrap; }

/* ---------- Kleine Textseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 70ch; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 1em; }
.legal h2 { font-size: 22px; margin: 2em 0 0.7em; }

/* Kleinere H1-Variante (Seitenkopf „klein“, 404) */
.page-title--small { font-size: clamp(36px, 5vw, 56px); }

/* ---------- Freier Redaktionsinhalt (Modul „Text“) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; margin: 2em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 1.6em 0 0.6em; }
.prose ul { margin-bottom: 1em; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before { content: "\2022"; position: absolute; left: 0; }
.prose a { text-underline-offset: 3px; }
.prose a:hover { text-decoration: none; }

.footer address { font-style: normal; }

/* =========================================================
   Responsive: ab Tablet
   ========================================================= */
@media (min-width: 760px) {
  body { font-size: 19px; }

  .features { grid-template-columns: repeat(3, 1fr); }

  .about { grid-template-columns: 1fr 2fr; }

  .footer { --wave-p: 78px; --wave-t: 17px; --wave-r: 53.2px; }
  .footer .wrap { grid-template-columns: auto 1fr 1fr 1fr; }
  .footer-seal { grid-column: auto; margin-right: 24px; }
}

/* =========================================================
   Responsive: Desktop
   ========================================================= */
@media (min-width: 980px) {
  .hero {
    min-height: 720px;
    /* Desktop: Text steht links neben den Pflanzen – kein Wash nötig */
    background: #dfe0d6 url("../img/hero-bg.jpg") center / cover no-repeat;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas: "title visual" "note visual";
    align-items: center;
    align-content: center;
    gap: 40px;
    padding-top: 160px;
    padding-bottom: 120px;
  }
  .hero h1 { align-self: end; }
  .hero-note { align-self: start; }
  .hero-visual img { width: min(30vw, 420px); }
  .jobs-badge { top: 10%; right: 6%; }

  .team .wrap {
    grid-template-columns: 1fr 1.6fr;
    align-items: end;
    gap: 60px;
  }
  .team-text { padding-bottom: 120px; }
  .team-photo { margin: 0 calc(-1 * var(--pad)) 0 0; }
}
