﻿/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --beige-light:   #f5f0e8;
  --beige-mid:     #ede3d0;
  --orange-soft:   #e8955a;
  --orange-light:  #f2b27a;
  --orange-warm:   #d4734a;
  --brown-light:   #c4a882;
  --brown-mid:     #9c7a5a;
  --brown-dark:    #6b4f35;
  --text-dark:     #3e2b1a;
  --text-mid:      #5c3d22;
  --white:         #ffffff;

  --shadow-card:   0 4px 20px rgba(110, 70, 30, 0.12);
  --shadow-header: 0 2px 16px rgba(110, 70, 30, 0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--beige-light);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;

  /* Sanftes Einblenden via JS */
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.loaded {
  opacity: 1;
}

/* ============================================================
   SCHWEBENDER BODY-CONTAINER
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(232, 149, 90, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(196, 168, 130, 0.18) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--orange-warm) 100%);
  box-shadow: var(--shadow-header);
  padding: 0 32px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--beige-light);
  text-shadow: 1px 2px 6px rgba(0,0,0,0.25);
  font-style: italic;
}

.nav-link {
  color: var(--beige-light);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border: 2px solid rgba(245, 240, 232, 0.45);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--beige-light);
  color: var(--brown-dark);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding: 48px 32px 56px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* --- Haupttextfeld --- */
.main-text-box {
  background: linear-gradient(135deg, var(--beige-mid) 0%, var(--orange-light) 100%);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--orange-warm);
}

.main-text-box h1 {
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.main-text-box p {
  color: var(--text-mid);
  margin-bottom: 12px;
}

.main-text-box p:last-child {
  margin-bottom: 0;
}

/* --- Zweigeteiltes Textfeld --- */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Linkes Feld */
.col-left {
  background: var(--beige-mid);
  border-radius: var(--radius);
  padding: 36px 36px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--brown-light);
}

.col-left h2 {
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin-bottom: 14px;
}

.col-left p {
  color: var(--text-mid);
  margin-bottom: 10px;
}

/* Rechtes Feld */
.col-right {
  background: linear-gradient(160deg, var(--orange-light) 0%, var(--beige-mid) 100%);
  border-radius: var(--radius);
  padding: 28px 28px 36px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--orange-warm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Bildplatzhalter */
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      45deg,
      var(--brown-light) 0px,
      var(--brown-light) 1px,
      transparent 1px,
      transparent 18px
    ),
    var(--beige-mid);
  border: 2px dashed var(--brown-mid);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.placeholder-label {
  position: absolute;
  background: rgba(107, 79, 53, 0.75);
  color: var(--beige-light);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.placeholder-img[style*="none"] + .placeholder-label {
  /* Label bleibt sichtbar wenn Bild nicht lädt */
}

.col-right-text {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  padding: 22px 32px;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-link {
  color: var(--beige-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--orange-light);
}

.footer-divider {
  color: var(--brown-light);
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 32px 20px 44px;
    gap: 24px;
  }

  .main-text-box {
    padding: 28px 28px;
  }

  .main-text-box h1 {
    font-size: 1.6rem;
  }

  .two-col-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — SMARTPHONE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 5px 12px;
  }

  .main-content {
    padding: 22px 14px 36px;
    gap: 18px;
  }

  .main-text-box {
    padding: 22px 18px;
    border-left-width: 4px;
  }

  .main-text-box h1 {
    font-size: 1.3rem;
  }

  .col-left,
  .col-right {
    padding: 20px 18px;
  }

  .footer-inner {
    gap: 12px;
  }
}
