/* =========================================================
   style.css – all styling for the website
   Contents:  1 Design tokens · 2 Fonts · 3 Base · 4 Buttons
              5 Header · 6 Hero · 7 Quote · 8 Sections
              9 Carousel · 10 Services · 11 Contact & form
              12 Footer · 13 Legal pages
   ========================================================= */


/* ---------- 1. DESIGN TOKENS ----------
   Change colors and spacing for the whole site here. */
:root {
  --green: #bcce3a;       /* leaf green from the logo */
  --orange: #fd8d03;      /* sun orange from the logo */
  --dark: #172315;        /* near-black green (header, footer, text) */
  --paper: #f5f7ec;       /* light green-white background */
  --white: #ffffff;
  --text-light: #dfe5d4;  /* text on dark backgrounds */
  --text-muted: #4a5544;  /* secondary text */

  --border: 3px solid var(--dark);   /* thick outline like the logo */
  --max-width: 72rem;                /* max content width */
  --gutter: clamp(1rem, 4vw, 2.5rem);/* left/right page padding */
  --radius: 10px;
}


/* ---------- 2. FONTS (Poppins, self-hosted in media/fonts) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../media/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../media/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../media/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../media/fonts/poppins-latin-700-normal.woff2") format("woff2"); }


/* ---------- 3. BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-underline-offset: 3px; }

/* .container = centered content area with side padding */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }


/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border: var(--border);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover   { transform: translateY(-1px); }
.btn-orange  { background: var(--orange); color: var(--dark); }
.btn-outline { background: none; color: var(--green); border-color: var(--green); }


/* ---------- 5. HEADER (top navigation bar) ---------- */
.site-header { background: var(--dark); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.header-logo img { width: 9rem; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--white); font-weight: 500; text-decoration: none; }
.site-header nav a:hover { color: var(--green); }
.site-header nav .btn { min-height: 2.5rem; padding: 0.4rem 1.1rem; color: var(--dark); }

/* Mobile: only logo and contact button */
@media (max-width: 760px) {
  .header-logo span, .site-header nav a:not(.btn) { display: none; }
  .header-logo img { width: 6rem; }
}


/* ---------- 6. HERO (dark intro with round "sun" image) ---------- */
.hero { background: var(--dark); color: var(--white); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* text left, sun right */
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.3;          /* extra line spacing for readability */
  letter-spacing: 0.005em;
  color: var(--green);
  margin-bottom: 1.5rem;
  hyphens: manual;           /* only break where &shy; is set in the HTML */
}
.hero-text { font-size: 1.15rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* The sun: round orange frame around the hero image */
.sun {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  overflow: hidden;
  background: var(--orange);
  box-shadow: 0 0 0 6px var(--dark), 0 0 0 9px var(--orange);
}
.sun img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: smaller sun above the text */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .sun { order: -1; max-width: 15rem; justify-self: start; }
}


/* ---------- 7. QUOTE (light green band) ---------- */
.quote { background: var(--green); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.quote-author { font-weight: 500; }
.quote-reply {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: var(--border);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 48ch;
}


/* ---------- 8. SECTIONS (shared) ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-paper { background: var(--paper); }
.intro { font-size: 1.1rem; color: var(--text-muted); }


/* ---------- 9. CAROUSEL ----------
   .track = horizontal scroll strip (swipeable on phones).
   Each .slide snaps into place (CSS scroll-snap). */
.carousel { margin-top: 3.5rem; }
.carousel-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.carousel-header h3 { margin: 0 auto 0 0; font-size: 1.4rem; } /* pushes arrows to the right */

.arrow {
  width: 3rem;
  height: 3rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--orange);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.arrow:disabled { background: var(--paper); opacity: 0.5; cursor: default; }

.track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;            /* hide scrollbar */
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }

/* Carousel 2: two cards side by side on desktop */
.two-per-view .slide { flex-basis: calc(50% - 1rem); }
@media (max-width: 700px) {
  .two-per-view .slide { flex-basis: 100%; }
}

/* Before/after: two portrait images side by side */
.slide h4 { font-size: 1.1rem; margin: 0 0 1rem; }
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 44rem; /* width of the before/after pair on desktop */
}
.before-after figure { margin: 0; position: relative; }
.before-after img,
.card img {
  width: 100%;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
}
.before-after img { aspect-ratio: 3 / 4; }

/* "Vorher"/"Nachher" label sits ON the image (not a button) */
.before-after figcaption {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.1rem 0.7rem;
  border-radius: 6px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.before-after figcaption.after { background: var(--green); }

/* "Weitere Ergebnisse" cards */
.card img { aspect-ratio: 4 / 3; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.3rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }


/* ---------- 10. SERVICES (six cards, all visible) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop: 3 columns → 2 rows */
  gap: 2.5rem 3rem;
  margin-top: 2rem;
}
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

.service { border-top: var(--border); padding-top: 1.1rem; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.service li { position: relative; padding-left: 1.5rem; color: var(--text-muted); }
.service li::before { /* green dot with dark outline instead of a bullet */
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--dark);
}


/* ---------- 11. CONTACT & FORM ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr; /* details left, form right */
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-details { margin: 2rem 0 0; }
.contact-details dt { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.contact-details dd { margin: 0.2rem 0 1rem; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

.form {
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.form label { font-weight: 600; font-size: 0.95rem; margin-top: 0.7rem; }
.form label:first-child { margin-top: 0; }
.optional { font-weight: 400; color: var(--text-muted); }
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--dark);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}
.form textarea { resize: vertical; }

.form .consent {
  display: flex;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.consent input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.2rem; accent-color: var(--dark); }

.honeypot { position: absolute; left: -9999px; }

.form-message {
  margin: 0.8rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #b3261e;
  background: #fdecea;
  font-size: 0.95rem;
}
.form .btn { justify-self: start; margin-top: 1rem; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }

.form-success { background: var(--green); }
.form-success-title { font-size: 1.4rem; font-weight: 700; margin: 0; }


/* ---------- 12. FOOTER (same on every page) ---------- */
.site-footer { background: var(--dark); color: var(--text-light); padding: 3rem 0; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 4rem;
}
.site-footer img { width: 8rem; }
.footer-name { color: var(--green); font-weight: 600; margin: 0.75rem 0 0; }
.site-footer address, .footer-links { font-style: normal; display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { color: var(--text-light); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }


/* ---------- 13. LEGAL PAGES (Impressum, Datenschutz) ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .container { max-width: 50rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal p, .legal li { max-width: 70ch; }
.legal address { font-style: normal; }

/* Yellow highlight = still needs to be filled in */
.placeholder { background: #fff3cd; outline: 2px dashed var(--orange); padding: 0 0.2em; }
