/* === blindenhund.at — Blindenführhundschule Ferstl === */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors — Warm Blue + Gold */
  --primary: #1e5fa6;
  --primary-light: #3b7dd8;
  --primary-dark: #164a80;
  --secondary: #d4922a;
  --secondary-light: #e8ad4c;
  --accent: #2e8b57;
  --accent-light: #3da86e;

  /* Surfaces */
  --bg: #f8f9fb;
  --bg-alt: #eef2f7;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.95);
  --bg-footer: #0f2942;

  /* Text */
  --text: #1a2a3a;
  --text-muted: #5a6a7a;
  --text-light: #8a95a5;
  --text-on-primary: #ffffff;
  --text-footer: #c8d6e5;
  --text-footer-bright: #ffffff;

  /* Borders & Shadows */
  --border: #dce3ec;
  --border-light: #e8eef5;
  --shadow-sm: 0 1px 3px rgba(15,41,66,0.06);
  --shadow-md: 0 4px 12px rgba(15,41,66,0.08);
  --shadow-lg: 0 8px 30px rgba(15,41,66,0.12);
  --shadow-xl: 0 20px 50px rgba(15,41,66,0.15);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --gap: 1.5rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #0c1a2a;
  --bg-alt: #12253a;
  --bg-card: #172d45;
  --bg-nav: rgba(12,26,42,0.95);
  --bg-footer: #081422;
  --text: #e0e8f0;
  --text-muted: #8a9ab0;
  --text-light: #5a6a80;
  --border: #1e3550;
  --border-light: #1a2e45;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.35);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--text); }

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

/* --- Navigation --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem;
  color: var(--primary);
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo:hover { color: var(--primary-light); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links li a {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.4rem;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 0.85rem;
  font-size: 0.88rem; color: var(--text-muted);
  border-radius: 6px; transition: all var(--transition);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--primary); background: var(--bg-alt);
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--border); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  padding: calc(70px + var(--gap-xl)) 0 var(--gap-xl);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-on-primary);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 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.04'%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: 700px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: #fff;
  margin-bottom: 1rem; line-height: 1.2;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9; margin-bottom: 2rem; line-height: 1.6;
}
.hero .btn { margin-right: 0.75rem; margin-bottom: 0.75rem; }

/* Hero small (subpages) */
.hero-small {
  padding: calc(70px + var(--gap-lg)) 0 var(--gap-lg);
  min-height: auto;
}
.hero-small h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.hero-small .subtitle { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: #fff; border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: #fff; transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: #fff; border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff; color: #fff;
}
.btn-secondary {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff; transform: translateY(-2px);
}

/* --- Sections --- */
section { padding: var(--gap-xl) 0; }
section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700; margin-bottom: 0.75rem;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted); text-align: center;
  max-width: 650px; margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary);
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 1rem; font-weight: 600; font-size: 0.9rem;
  color: var(--primary);
}
.card .card-link:hover { gap: 0.6rem; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* --- Content Sections --- */
.content-section { padding: var(--gap-xl) 0; }
.content-section h2 {
  font-size: 1.6rem; margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}
.content-section h3 {
  font-size: 1.2rem; margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}
.content-section p { margin-bottom: 1rem; color: var(--text-muted); }
.content-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.content-section ul li {
  margin-bottom: 0.4rem; color: var(--text-muted);
  padding-left: 0.3rem;
}

/* Content with sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap-lg);
  align-items: start;
}
.sidebar .card { margin-bottom: var(--gap); }
.sidebar .card h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--primary); }
.sidebar .card p { font-size: 0.9rem; }

/* --- Info Box --- */
.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.warning {
  border-left-color: var(--secondary);
  background: rgba(212,146,42,0.08);
}
.info-box p { color: var(--text); margin-bottom: 0; }

/* --- Benefits List --- */
.benefits-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin: 1.5rem 0;
  list-style: none !important;
  margin-left: 0 !important;
}
.benefits-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.benefits-list li .material-icons {
  color: var(--accent); font-size: 1.2rem;
  flex-shrink: 0; margin-top: 0.1rem;
}

/* --- Tasks List (Aufgaben Blindenführhund) --- */
.tasks-list {
  margin: 1.5rem 0; list-style: none !important; margin-left: 0 !important;
}
.tasks-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}
.tasks-list li:last-child { border-bottom: none; }
.tasks-list li .material-icons {
  color: var(--primary); font-size: 1.1rem;
  flex-shrink: 0; margin-top: 0.2rem;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 640px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 500; font-size: 0.9rem;
  margin-bottom: 0.4rem; color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,95,166,0.12);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

/* Form message */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.form-message.success {
  background: rgba(46,139,87,0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: block;
}
.form-message.error {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
  display: block;
}

/* --- Links List --- */
.links-category { margin-bottom: 2rem; }
.links-category h3 {
  font-size: 1.1rem; margin-bottom: 0.75rem;
  color: var(--primary); display: flex; align-items: center; gap: 0.5rem;
}
.links-list {
  list-style: none !important; margin-left: 0 !important;
}
.links-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.links-list li:last-child { border-bottom: none; }
.links-list li a {
  font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-contact a { color: var(--text-footer); }
.footer-contact a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-footer); font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.85rem;
  color: var(--text-light);
}
.footer-bottom a { color: var(--text-footer); }
.footer-bottom a:hover { color: #fff; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.cookie-banner a { color: var(--primary); font-weight: 500; }
.cookie-btn {
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.cookie-btn:hover { background: var(--primary-light); }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
}

/* --- Material Icons --- */
.material-icons {
  font-size: inherit;
  vertical-align: middle;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li a { padding: 0.75rem 1rem; width: 100%; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    padding-left: 1rem; display: none;
    background: transparent;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .hero { min-height: 55vh; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 50vh; padding-top: calc(70px + 2rem); padding-bottom: 2rem; }
  .hero h1 { font-size: 1.75rem; }
  section { padding: 3rem 0; }
  .card { padding: 1.5rem; }
}
