@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Premium Modern Ergotherapie Theme */
:root {
  --bg: #FAF9F6;
  --surface: #ffffff;
  --surface2: #F0EEEA;

  --text: #2D3748;
  --muted: #718096;

  --brand: #C87B5B;      /* terrakotta */
  --brand2: #E8B49B;     /* sand */
  --brand-light: #F4E4DB;
  --accent: #7A9082;     /* salbei */
  --accent-light: #DFE6E1;
  --ink: #1A202C;

  --border: rgba(45, 55, 72, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

  --radius: 20px;
  --radius2: 32px;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(1000px 800px at 0% 0%, rgba(232, 180, 155, 0.15), transparent 70%),
    radial-gradient(1000px 800px at 100% 100%, rgba(122, 144, 130, 0.12), transparent 70%);
  background-attachment: fixed;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 50px 0; }
@media (max-width: 980px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
a.card { display: block; }
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  opacity: 1;
}
.card.soft {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 123, 91, 0.2);
  background: var(--brand-light);
  color: var(--brand);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Typography */
.h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 16px 0; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.h3 { font-size: 22px; margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.p { margin: 0; color: var(--muted); font-size: 17px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 0; font-weight: 400; }
.small { font-size: 14px; color: var(--muted); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 249, 246, 0.85);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 110;
}
.logo {
  width: 44px; height: 44px; border-radius: 16px;
  background: 
    radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent),
    linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 20px rgba(200, 123, 91, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.brand-name { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.2px; line-height: 1.2; }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 0; }

/* Desktop Nav */
.nav {
  display: flex; align-items: center; gap: 6px;
}
.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  border: 1px solid transparent;
}
.nav a:not(.btn):hover {
  background: rgba(45, 55, 72, 0.04);
}
.nav a.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

/* Mobile Nav Styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  position: relative; transition: all 0.3s ease;
}
.mobile-menu-toggle span::before, .mobile-menu-toggle span::after {
  content: ''; position: absolute; width: 24px; height: 2px; background: var(--ink);
  left: 0; transition: all 0.3s ease;
}
.mobile-menu-toggle span::before { top: -7px; }
.mobile-menu-toggle span::after { top: 7px; }
.mobile-menu-toggle.open span { background: transparent; }
.mobile-menu-toggle.open span::before { transform: rotate(45deg); top: 0; }
.mobile-menu-toggle.open span::after { transform: rotate(-45deg); top: 0; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px); z-index: 90;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .mobile-menu-toggle { display: flex; }
  .brand-sub { display: none; } /* Simplify header on mobile */
  
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 85vw; max-width: 360px; height: 100vh;
    background: var(--surface);
    box-shadow: -20px 0 40px rgba(0,0,0,0.1);
    flex-direction: column; align-items: stretch;
    padding: 90px 24px 30px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    overflow-y: auto;
  }
  .nav.open { right: 0; }
  .nav a {
    padding: 16px; border-radius: 12px; font-size: 18px;
    text-align: center;
  }
  .nav a.btn { margin-top: 20px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 123, 91, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn.primary:hover {
  box-shadow: 0 12px 30px rgba(200, 123, 91, 0.4);
  opacity: 1;
}
.btn.ghost {
  background: transparent; box-shadow: none; border-color: transparent;
}
.btn.ghost:hover {
  background: rgba(0,0,0,0.04); transform: none;
}
.btn.block { width: 100%; }

/* Hero */
.hero { padding: 40px 0 20px; }
.hero-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; }
}
.hero-card {
  border-radius: var(--radius2);
  padding: 48px;
  background: 
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(200,123,91,0.05)" stroke-width="20" fill="none"/></svg>') no-repeat 110% 110%;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
@media (max-width: 640px) {
  .hero-card { padding: 32px 24px; }
}
.hero-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(232, 180, 155, 0.15) 0%, transparent 60%);
  z-index: 0; pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.kpi { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.list { margin: 0; padding-left: 0; color: var(--muted); list-style: none; }
.list li { margin: 12px 0; position: relative; padding-left: 28px; font-size: 16px; }
.list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: bold; font-size: 18px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--surface);
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr; } }

.hr { height: 1px; background: var(--border); margin: 24px 0; }

/* Forms & Inputs */
.input, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  outline: none;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
}
.input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
  background: var(--surface);
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }

/* Notice */
.notice {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(122, 144, 130, 0.3);
  background: var(--accent-light);
  color: var(--ink);
  font-size: 15px;
  display: flex; gap: 12px; align-items: flex-start;
}
.notice::before {
  content: 'ℹ'; display: inline-flex; width: 24px; height: 24px;
  background: var(--accent); color: white; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: bold; font-size: 12px; flex-shrink: 0;
}

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 16px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: all 0.3s ease;
}
.acc-item:hover { border-color: rgba(45, 55, 72, 0.2); box-shadow: var(--shadow-sm); }
.acc-btn {
  width: 100%; text-align: left; padding: 20px; background: transparent; border: 0;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 18px; color: var(--ink); font-family: inherit;
}
.acc-panel {
  max-height: 0; overflow: hidden; padding: 0 20px; color: var(--muted);
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.acc-item.open .acc-panel { max-height: 500px; padding: 0 20px 20px; }
.acc-icon { font-weight: 900; transition: transform 0.3s ease; color: var(--brand); }
.acc-item.open .acc-icon { transform: rotate(180deg); }

/* Breadcrumbs */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; font-weight: 500; }
.breadcrumbs a { color: var(--brand); }
.breadcrumbs a:hover { color: var(--ink); }

/* Embed */
.embed {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  min-height: 480px;
  box-shadow: var(--shadow-sm);
}
.embed iframe { width: 100%; height: 560px; border: 0; }

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
