/* ============================================================
   Prazanta LDA — One-Pager
   Primär:  #0B884C
   Sekundär: #BD8920
   ============================================================ */

:root {
  --c-primary: #0B884C;
  --c-primary-dark: #086b3c;
  --c-secondary: #BD8920;
  --c-secondary-tint: rgba(189, 137, 32, .2);   /* 20% Hover-Fläche */
  --c-text: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-bg: #ffffff;
  --c-bg-alt: #faf8f3;
  --c-border: #e8e6e0;

  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;

  --panel-w: 320px;
  --container: 1100px;
  --gap: 80px;

  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Wird von JS für a11y-Schriftgrößer-Buttons verändert */
  --fs-scale: 1;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: calc(17px * var(--fs-scale));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .25s var(--ease);
}
a:hover { color: var(--c-secondary); }

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: .2em 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; color: #333; }
ul { padding: 0; margin: 0 0 1.1em; list-style: none; }

button { font-family: inherit; }

/* ============================================================
   Layout: feste linke Spalte + scrollender Content
   ============================================================ */

.side-panel {
  position: fixed;
  top: 0; left: 0;
  width: var(--panel-w);
  height: 100vh;
  padding: 2vw;
  background: var(--c-bg);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 36px;
  z-index: 50;
  transition: transform .4s var(--ease);
}

main, .site-footer { margin-left: var(--panel-w); }

/* ---------- Logo (Side-Panel) ---------- */
.side-panel .logo {
  display: block;
}
.side-panel .logo img {
  max-width: 75%;
  height: auto;
  transition: transform .4s var(--ease);
}
.side-panel .logo:hover img { transform: scale(1.03); }

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: .06em;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  color: var(--c-muted);
  cursor: pointer;
  letter-spacing: .08em;
  position: relative;
  font-weight: 600;
  font-size: 13px;
  transition: color .25s var(--ease);
}
.lang-switch button::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 0;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.lang-switch button:hover { color: var(--c-text); }
.lang-switch button.active {
  color: var(--c-primary);
}
.lang-switch button.active::after { transform: scaleX(1); }
.lang-sep { color: var(--c-border); }

/* ---------- Section-Nav (vertikal) ---------- */
.section-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-muted);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding-left: 28px;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.section-nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--c-muted);
  transition: width .35s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.section-nav a:hover { color: var(--c-text); padding-left: 36px; }
.section-nav a:hover::before { width: 28px; background: var(--c-text); }
.section-nav a.active {
  color: var(--c-primary);
  padding-left: 44px;
}
.section-nav a.active::before {
  width: 36px;
  height: 2px;
  background: var(--c-primary);
}

.side-spacer { flex: 1; min-height: 24px; }

/* ---------- Schriftgrößen-Buttons ---------- */
.font-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.font-controls button {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.font-controls button span {
  font-size: 14px;
  line-height: 1;
}
.font-controls button:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
  background: rgba(11, 136, 76, .06);
}

/* ============================================================
   Mobile Top-Bar  +  Off-canvas
   ============================================================ */

.mobile-bar { display: none; }
.menu-backdrop { display: none; }

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 140px 60px;
  position: relative;
}
.section.alt { background: var(--c-bg-alt); }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.split.reverse .col-media { order: 2; }

.col-text { padding: 10px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-secondary);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ============================================================
   Quadratische Bilder + Reveal + Stack
   ============================================================ */

.square-stack,
.square-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--c-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .15);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

.col-media:hover .square-stack,
.col-media:hover .square-slideshow {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .25);
}

/* Slideshow: gestapelte Bilder, Auto-Cycle alle 5 s */
.square-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.square-slideshow img.is-active {
  opacity: 1;
}

/* Stack: gestapelte Bild-Gruppen, nur die aktive Gruppe sichtbar; pro Gruppe Diashow zwischen Bildern */
.square-stack .stack-group {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.square-stack .stack-group.is-active {
  opacity: 1;
}
.square-stack .stack-group img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s var(--ease), transform .8s var(--ease);
  will-change: opacity;
}
.square-stack .stack-group img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Reveal-In für Bilder beim Scrollen */
.reveal-img {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-img.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Accordion (Team + Projekte)
   ============================================================ */

.accordion { margin: 0; }

.accordion > li {
  border-bottom: 1px solid var(--c-border);
  transition: background .3s var(--ease);
}
.accordion > li:first-child { border-top: 1px solid var(--c-border); }

.accordion > li:hover { background: var(--c-secondary-tint); }
.accordion > li.is-open { background: var(--c-secondary-tint); }

.accordion-row {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  cursor: pointer;
  text-align: left;
  color: var(--c-text);
  font-size: 1rem;
  position: relative;
  transition: padding .3s var(--ease);
}

.row-name {
  font-weight: 700;
  color: var(--c-text);
  min-width: 130px;
}
.row-role {
  color: var(--c-muted);
  flex: 1;
}
.row-icon {
  width: 16px; height: 16px;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.row-icon::before,
.row-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--c-primary);
  transition: transform .35s var(--ease);
}
.row-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.row-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.is-open .row-icon::after { transform: translate(-50%, -50%) scaleY(0); }

/* Slide-down Body via grid-template-rows */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows .45s var(--ease),
              opacity .35s var(--ease),
              transform .45s var(--ease);
}
.accordion-body > div { overflow: hidden; min-height: 0; }
.accordion-body p { padding: 0 8px 16px; margin: 0; color: #333; }
.proj-link {
  display: inline-block;
  padding: 0 8px 18px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
}

.is-open .accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-info { margin-top: 20px; }
.contact-info li {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.contact-info .label {
  min-width: 90px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}

.contact-form {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 36px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section:not(.alt) .contact-form { background: var(--c-bg-alt); }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--c-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
  outline: none;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--c-primary);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #c44;
}

.contact-form .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-muted);
  font-weight: 400;
  line-height: 1.5;
}
.contact-form .consent input { margin-top: 3px; flex-shrink: 0; }
.contact-form .consent a { font-weight: 600; }

/* Honeypot — komplett unsichtbar, ausserhalb Tab-Reihenfolge, von Screenreadern ignoriert */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"] {
  margin-top: 10px;
  align-self: flex-start;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  padding: 14px 32px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-form button:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(11, 136, 76, .5);
}

.form-status {
  margin: 0;
  font-size: 13px;
  color: var(--c-primary);
  min-height: 1.2em;
}
.form-status.error { color: #c44; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 30px 60px;
  background: var(--c-bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--c-muted);
}
.legal { display: flex; gap: 28px; flex-wrap: wrap; }
.legal a { color: var(--c-muted); position: relative; }
.legal a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}
.legal a:hover { color: var(--c-primary); }
.legal a:hover::after { transform: scaleX(1); }

/* ============================================================
   Legal-Subpages (ficha-tecnica.html, privacidade.html, termos.html)
   ============================================================ */

.legal-page {
  padding: 120px 60px;
  max-width: 820px;
}
.legal-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 1.2em;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 2em 0 .5em;
}
.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 .4em;
  color: var(--c-secondary);
}
.legal-page p, .legal-page li { font-size: .96rem; }
.legal-page ul { list-style: disc; padding-left: 1.3em; }
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2em;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   Responsive  —  < 1200 px Mobile-Layout
   ============================================================ */

@media (max-width: 1199px) {
  main, .site-footer { margin-left: 0; }

  /* Side panel = Off-canvas */
  .side-panel {
    transform: translateX(-100%);
    width: min(320px, 86vw);
    box-shadow: 0 0 40px rgba(0,0,0,.15);
  }
  body.menu-open .side-panel { transform: translateX(0); }
  body.menu-open .menu-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 40;
    animation: fadeIn .3s var(--ease);
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* Mobile-Top-Bar einblenden */
  .mobile-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .menu-toggle {
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: border-color .25s var(--ease);
  }
  .menu-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--c-text);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .menu-toggle:hover { border-color: var(--c-primary); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-logo {
    justify-self: center;
    display: block;
  }
  .mobile-logo img { height: 28px; width: auto; }

  .mobile-tools {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-tools .font-controls button {
    width: 32px; height: 32px;
    font-size: 12px;
  }
  .mobile-tools .lang-switch button { padding: 4px 4px; font-size: 12px; }

  /* Split-Layout 1 Spalte */
  .split, .split.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.reverse .col-media { order: 0; }
  .section { padding: 80px 24px; }
  .site-footer, .legal-page { padding: 28px; }
  .legal-page { padding: 60px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .contact-form { padding: 24px; }
  .contact-info li { flex-direction: column; gap: 4px; }
  .legal { gap: 16px; justify-content: center; }
  .mobile-tools { gap: 6px; }
  .mobile-tools .lang-switch { gap: 0; }
  .mobile-tools .lang-switch button { padding: 4px 3px; }
}

@media (max-width: 460px) {
  .mobile-tools .font-controls { display: none; }
  .row-icon { display: none; }
  .accordion-row { padding: 14px 6px; }
  .row-name { min-width: 100%; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal-img { opacity: 1; transform: none; }
}
