/* =========================
   LOCAL FONT: Reenie Beanie (TTF)
   Datei liegt im gleichen Ordner wie styles.css:
   ReenieBeanie-Regular.ttf
   ========================= */
@font-face{
  font-family: "Reenie Beanie";
  src: url("ReenieBeanie-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  /* dein Capinari-Grün + Beige-Background */
  --capinari-green: #22372A;
  --capinari-beige: #E5E1D4;
  --text: #1f1f1f;

  /* 1cm Seitenabstand für Linien */
  --line-margin: 1cm;

  --container-max: 980px;
  --header-h: 88px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* FIXED HEADER */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--capinari-beige);
  z-index: 9999;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.header-inner{
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
}

/* Anchor-Offset für fixed Header (verhindert "Abschnitt oben abgeschnitten") */
#home,
#unternehmen,
#investment,
#kontakt{
  scroll-margin-top: var(--header-h);
}

#top{
  scroll-margin-top: 0;
}

/* Logo */
.brand{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  text-decoration: none;
}
.brand-logo{
  height: 32px;
  width: auto;
  display: block;
}

/* Desktop Nav */
.nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav a{
  color: var(--capinari-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover{
  border-bottom-color: rgba(34,55,42,0.45);
}

/* Hamburger Button – Desktop (hidden) */
.nav-toggle{
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

/* Die 3 Balken kommen aus den 3 span.nav-toggle-bar im HTML */
.nav-toggle-bar{
  display: block;
  height: 2px;
  background: var(--capinari-green);
  margin: 5px 10px; /* links/rechts 10px Abstand im Button */
  border-radius: 2px;
}

/* Page wrapper with top padding for fixed header */
.page{
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* HERO */
.hero{
  width: 100%;
  background: #fff;
}
.hero-img{
  width: 100%;
  height: 300px;               /* wie gewünscht */
  object-fit: cover;
  object-position: center 50%; /* weniger Himmel -> weiter nach unten zeigen */
  display: block;
}

/* SECTIONS */
.section{
  padding: 44px 0;
}
.container{
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 22px;
}

/* QUOTE */
.section-quote{ padding-top: 34px; padding-bottom: 34px; }
.quote{
  text-align: center;
}
.quote-hand{
  font-family: "Reenie Beanie", cursive;
  color: var(--capinari-green);
  line-height: 1.05;
  margin: 0;
  font-size: 38px;
}
.quote-line + .quote-line{ margin-top: 10px; }
.quote-author{
  margin: 14px 0 0 0;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

/* IDENTISCHE Zwischenlinien überall: full width minus 1cm links/rechts */
.section-divider{
  border: none;
  height: 1px;
  background: rgba(34,55,42,0.55);
  width: calc(100% - (2 * var(--line-margin)));
  margin: 0 auto;
}

/* TITLES */
.section-title{
  margin: 0 0 18px 0;
  font-size: 28px;
  color: var(--capinari-green);
  font-weight: 700;
}
.section-title.center{ text-align: center; }

/* Textblock */
.text-block{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
}
.text-block p{ margin: 0; }
.text-block p + p{ margin-top: 18px; }

/* Investment criteria card */
.criteria-card{
  margin: 20px auto 0 auto;
  max-width: 980px;
  background: #F2EFE6;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  overflow: hidden;
}
.criteria-row{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.10);
}
.criteria-row:first-child{ border-top: none; }

.criteria-key{
  padding: 18px 18px;
  font-weight: 700;
  color: var(--capinari-green);
  background: rgba(255,255,255,0.35);
}
.criteria-val{
  padding: 18px 18px;
  color: #2a2a2a;
}

/* bullets */
.bullet{
  margin: 0;
  padding-left: 18px;
}
.bullet li{
  margin: 6px 0;
}

/* Kontakt */
.contact-intro{
  text-align: center;
  color: var(--capinari-green);
  max-width: 860px;
  margin: 0 auto 22px auto;
  line-height: 1.65;
  font-size: 16px;
}
.contact-form{
  margin: 0 auto;
  max-width: 860px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 20px;
}
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}
.field{ display: flex; flex-direction: column; gap: 6px; }
.field-full{ grid-column: 1 / -1; }

label{
  font-size: 14px;
  color: rgba(0,0,0,0.70);
}
input, textarea{
  font: inherit;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(34,55,42,0.55);
  box-shadow: 0 0 0 3px rgba(34,55,42,0.12);
}

.checkbox{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}
.checkbox input{ margin-top: 3px; }

.actions{
  display: flex;
  justify-content: center;
}
.btn{
  background: var(--capinari-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover{ filter: brightness(0.95); }

/* Footer */
.site-footer{
  background: var(--capinari-beige);
  border-top: 1px solid var(--capinari-green);
  padding: 20px 0;
  font-size: 14px;
  color: var(--capinari-green);
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--line-margin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer p{ margin: 0; }

/* deine Footer-Links sind im HTML NICHT in .footer-links, daher so: */
.footer-links{
  margin-left: auto;      /* schiebt die Links nach rechts */
  display: flex;
  gap: 24px;
}

.footer-links a{
  color: var(--capinari-green);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:visited{ color: var(--capinari-green); }
.footer-links a:hover{ text-decoration: underline; }

@media (max-width: 768px){
  .footer-links{
    margin-left: 0;
    justify-content: center;
  }
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero-img{ height: 300px; }
  .criteria-row{ grid-template-columns: 260px 1fr; }
}

@media (max-width: 860px){
  :root{ --header-h: 78px; }

  .brand-logo{ height: 32px; }

  /* Desktop-Menü ausblenden, Burger einblenden */
  .nav{ display: none; }
  .nav-toggle{ display: block; }

  /* Dropdown Panel */
  .nav{
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 10000;
  }
  .nav.open{ display: flex; }

  .nav a{
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .nav a:last-child{ border-bottom: none; }

  .criteria-row{ grid-template-columns: 1fr; }
  .criteria-key{
    background: rgba(255,255,255,0.55);
    padding-bottom: 10px;
  }
  .criteria-val{ padding-top: 10px; }

  .form-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .quote-hand{ font-size: 30px; }
  .section-title{ font-size: 26px; }
}

.image-divider{
  width: 100%;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
}
.image-divider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================
   LEGAL PAGES (Impressum / Datenschutz)
   NUR aktiv, wenn <body class="legal"> gesetzt ist
   ========================= */

/* 2) Schriftfarbe grün + 3) global -2px */
body.legal{
  color: var(--capinari-green);
  font-size: 14px;          /* -2px */
  line-height: 1.65;
}

/* Auf Legal-Seiten nicht "min-height calc(...)" erzwingen,
   damit Footer ganz normal unten nach Content kommt */
body.legal .page{
  padding-top: var(--header-h);
  min-height: auto;
}

/* Überschriften auf Legal-Seiten (-2px) */
body.legal h1{
  color: var(--capinari-green);
  font-size: 30px;
  margin: 0 0 18px 0;
  text-align: center;
}
body.legal h2{
  color: var(--capinari-green);
  font-size: 22px;
  margin: 26px 0 10px 0;
}
body.legal h3{
  color: var(--capinari-green);
  font-size: 18px;
  margin: 18px 0 8px 0;
}

/* Textblöcke kompakter */
body.legal p,
body.legal li{
  font-size: 14px;
}

/* Links: NICHT grün erzwingen (damit sie erkennbar bleiben) */
body.legal a{
  color: rgba(34,55,42,0.75);
  text-decoration: underline;
}

/* Listen/Abstände */
body.legal ul{
  margin: 8px 0 16px 18px;
}

#formMessage{
  text-align: center;
  font-weight: 600;
}

/* Success-Box im selben Look wie das Kontaktformular
   + Text perfekt zentriert in der Box */
.form-success{
  display: none;              /* wird per JS auf flex gesetzt */
  width: 100%;
  min-height: 360px;          /* “Kartenhöhe” wie dein Formular */
  align-items: center;        /* vertikal zentriert */
  justify-content: center;    /* horizontal zentriert */
  flex-direction: column;     /* mehrere Absätze untereinander */
  text-align: center;
}

.form-success-text{
  margin: 0;
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
  color: var(--capinari-green);   /* Capinari-Grün */
}

/* Abstand zwischen den beiden Absätzen */
.form-success-text + .form-success-text{
  margin-top: 10px;
}

/* iPhone Fix: kein weißer Balken zwischen Header und Hero */
@supports (-webkit-touch-callout: none){
  .site-header{
    position: sticky;   /* statt fixed auf iOS */
    top: 0;
  }

  .page{
    padding-top: 0 !important;   /* sonst entsteht der zusätzliche Abstand */
  }
}