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

:root {
  --clr-bg: #f7f6f2;
  --clr-surface: #ffffff;
  --clr-text: #1a1a1a;
  --clr-muted: #5c5c5c;
  --clr-accent: #1e4d6b;
  --clr-accent-light: #e8f0f5;
  --clr-accent-mid: #2e6d91;
  --clr-gold: #b07d3a;
  --clr-border: #e2e0db;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent-mid); }
address { font-style: normal; }

/* ========================
   BUTTONS
======================== */
.btn-primary {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--clr-accent);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--clr-accent-mid);
  border-color: var(--clr-accent-mid);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,77,107,0.25);
}
.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--clr-accent);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--clr-accent);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-portal {
  display: inline-block;
  background: var(--clr-gold);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.btn-portal:hover { background: #c4903a; color: #fff; }

/* ========================
   HEADER
======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,242,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--clr-text); }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.logo-text {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clr-muted);
  line-height: 1.3;
}
.logo-text strong {
  display: block;
  font-weight: 700;
  color: var(--clr-text);
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  color: var(--clr-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-accent);
  background: var(--clr-accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--clr-accent) 0%, #0f2d40 60%, #1a3d52 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: #a8cfe0;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========================
   SECTION SHARED
======================== */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-sub { margin: 0 auto; }

/* ========================
   LEISTUNGEN
======================== */
.leistungen {
  padding: 6rem 0;
  background: var(--clr-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card--accent {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}
.card--accent .card-title { color: #fff; }
.card--accent .card-list li { color: rgba(255,255,255,0.85); }
.card--accent .card-list li::before { color: rgba(255,255,255,0.6); }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  display: block;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card-list li {
  font-size: 0.95rem;
  color: var(--clr-muted);
  padding-left: 1.25rem;
  position: relative;
}
.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-gold);
  font-size: 0.8rem;
  top: 0.15em;
}

/* ========================
   WARUM WIR
======================== */
.warum {
  padding: 6rem 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.warum-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: start;
}
.warum-text p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  max-width: 520px;
}

.info-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.info-card h4 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}
.info-card address {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 0;
}
.info-card p {
  font-size: 0.95rem;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.info-card a { color: var(--clr-accent); font-weight: 500; }
.info-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 1.25rem 0;
}

/* ========================
   PAGE HERO (inner pages)
======================== */
.page-hero {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #0f2d40 100%);
  padding: 4rem 0 3rem;
}
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* ========================
   PAGE CONTENT
======================== */
.page-layout {
  padding: 4rem 0 6rem;
}
.page-layout .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.page-main h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin: 2rem 0 0.75rem;
}
.page-main h2:first-child { margin-top: 0; }
.page-main h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 1.5rem 0 0.5rem;
}
.page-main p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.page-main ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--clr-muted);
  line-height: 1.8;
}
.page-main a { color: var(--clr-accent); font-weight: 500; }
.page-sidebar { position: sticky; top: 90px; }

/* ========================
   KONTAKT FORM
======================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(30,77,107,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 0.5rem; }

/* ========================
   DATENSCHUTZ / IMPRESSUM
======================== */
.legal-section {
  background: var(--clr-bg);
  border-left: 3px solid var(--clr-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.legal-section p { margin-bottom: 0; }

/* AGB Downloads */
.agb-downloads { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.agb-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
  color: var(--clr-text);
}
.agb-item:hover {
  border-color: var(--clr-accent);
  transform: translateX(4px);
  color: var(--clr-text);
}
.agb-icon {
  width: 44px;
  height: 44px;
  background: #e74c3c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.agb-info { flex: 1; }
.agb-info strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.agb-info span { font-size: 0.82rem; color: var(--clr-muted); }

/* Anfahrt map placeholder */
.map-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  margin-top: 1.5rem;
}
.map-container iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
}

/* ========================
   FOOTER
======================== */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 600;
}
.footer-brand .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ========================
   ANIMATIONS
======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .warum-inner,
  .page-layout .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .page-sidebar { position: static; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; width: 100%; }
  .btn-portal { width: 100%; text-align: center; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; min-height: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }
}
