/* ===================================================
   markundo – Hauptstylesheet
   Farben: Grün #22C55E | Grau #E9E7E7 | Weiß #FFFFFF
   =================================================== */

/* ===== Schriftarten: Söhne ===== */
@font-face {
  font-family: 'Söhne';
  src: url('../WOFF2/soehne-buch.woff2') format('woff2'),
       url('../OTF/Söhne-Buch.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Söhne';
  src: url('../WOFF2/soehne-halbfett.woff2') format('woff2'),
       url('../OTF/Söhne-Halbfett.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  --green:         #22C55E;
  --green-dark:    #16a34a;
  --gray:          #E9E7E7;
  --gray-dark:     #d0cecd;
  --black:         #1a1a1a;
  --text:          #444444;
  --white:         #ffffff;
  --font:          'Söhne', sans-serif;
  --max-width:     1200px;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
  height: var(--header-height);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--black);
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ===== Hamburger (Mobile) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Main ===== */
main {
  min-height: calc(100vh - var(--header-height) - 130px);
}

/* ===== Container & Section ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

/* Offset anchor targets so the sticky header doesn't cover them */
section[id] {
  scroll-margin-top: var(--header-height);
}

.section-gray {
  background: var(--gray);
}

/* ===== Headings ===== */
.page-heading {
  font-size: 1.5rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3rem;
  line-height: 1.2;
}

.page-heading.centered {
  text-align: center;
}

/* ===== Hero (Homepage) ===== */
.hero {
  padding: 4rem 0;
  background: var(--white);
}

.hero-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
}

.hero-image {
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Benefits Page: Three Columns ===== */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-icon {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-icon img {
  max-height: 90px;
  max-width: 90px;
  object-fit: contain;
  display: block;
}

.benefit-category {
  font-size: 1.15rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.benefit-title {
  font-size: 1rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.benefit-description {
  font-size: 1rem;
  color: var(--black);
  line-height: 1.7;
}

/* ===== Distribution Regions Page ===== */
.region-box {
  background: var(--gray);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  min-height: 520px;
}

.region-left {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.region-logo-inside {
  margin-bottom: 1.5rem;
}

.region-logo-inside img {
  display: block;
}

.region-heading {
  margin-bottom: 2rem;
}

.region-heading .line-1 {
  display: block;
  font-size: 2.4rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  line-height: 1.15;
}

.region-heading .line-2 {
  display: block;
  font-size: 2.4rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
}

.region-points {
  display: flex;
  flex-direction: column;
}

.region-point {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.region-pictogram {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.point-value {
  display: block;
  font-size: 1.4rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
}

.point-title {
  display: block;
  font-size: 0.92rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-top: 0.1rem;
}

.point-info {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.05rem;
}

.region-right {
  overflow: hidden;
  position: relative;
}

.region-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Contact Page ===== */
.contact-form {
  max-width: 660px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
  background: var(--gray);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:not([type="checkbox"]) {
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.btn-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-family: 'Söhne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: var(--green-dark);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Privacy Checkbox ── */
.form-checkbox-group {
  margin-top: 0.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.5;
}

.checkbox-text .required {
  color: var(--green);
  margin-left: 1px;
}

/* Asterisk in field labels */
label .required {
  color: var(--green);
  margin-left: 2px;
  font-weight: 600;
}

/* "* Required field" hint above the form */
.required-note {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 1.75rem;
}

.required-note .required {
  color: var(--green);
  font-weight: 600;
  margin-right: 1px;
}

/* Inline field error messages */
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Invalid field highlight */
.form-group--invalid input:not([type="checkbox"]),
.form-group--invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group--invalid input:not([type="checkbox"]):focus,
.form-group--invalid textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.checkbox-note {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
  margin-top: 0.6rem;
  font-weight: 400;
}

.checkbox-note a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-note a:hover {
  text-decoration: underline;
}

/* ── Form Status Message ── */
.form-status {
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.form-status--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ===== Subpages (Impressum, AGB, Datenschutz) ===== */
.subpage {
  padding: 5rem 0;
  max-width: 780px;
}

.subpage h1 {
  font-size: 1.5rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2rem;
}

.subpage h2 {
  font-size: 1.25rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--green);
  margin: 2.5rem 0 0.6rem;
}

.subpage h3 {
  font-size: 1.05rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin: 1.75rem 0 0.4rem;
}

.subpage h4 {
  font-size: 0.97rem;
  font-family: 'Söhne', sans-serif;
  font-weight: 600;
  color: var(--black);
  margin: 1.25rem 0 0.3rem;
}

.subpage p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.subpage ul,
.subpage ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.subpage ul li {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 0.3rem;
}

.subpage ol li {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
footer {
  background: var(--gray);
  border-top: 1px solid var(--gray-dark);
  padding: 2rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

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

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-center {
  font-size: 0.85rem;
  color: #666;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #555;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-nav ul li a:hover {
  color: var(--green);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-tile {
    grid-template-columns: 1fr;
  }
  .three-columns {
    grid-template-columns: 1fr 1fr;
  }
  .region-box {
    grid-template-columns: 1fr;
  }
  .region-right {
    min-height: 280px;
    max-height: 380px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }
  header nav ul {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  header nav ul.open {
    display: flex;
  }
  header nav ul li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray);
  }
  .three-columns {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .page-heading {
    font-size: 1.3rem;
  }
  .hero-text h1 {
    font-size: 2.1rem;
  }
}
