/* CuraSanat: Shared Stylesheet */
:root {
  /* Lotus Blue, hergeleitet aus dem Logo */
  --brand-50:#f3f7fb;
  --brand-100:#e3ecf4;
  --brand-200:#cbdbe8;
  --brand-300:#b0c6db;
  --brand-400:#8fafc8;
  --brand-500:#6f94b5;
  --brand-600:#577c9e;
  --brand-700:#456487;
  --brand-800:#344d6a;
  --brand-900:#223449;

  --surface:#fbfbfc;
  --surface-2:#f3f5f8;
  --surface-3:#e7ecf2;

  --fg-default:#0e1014;
  --fg-muted:#5b606c;
  --fg-subtle:#838893;

  --border-default:#e4e8ee;
  --border-strong:#c3cbd7;

  --accent: var(--brand-500);
  --accent-2: var(--brand-400);

  --shadow-sm: 0 1px 2px rgba(14,16,20,.05);
  --shadow-md: 0 4px 14px -4px rgba(14,16,20,.12);
  --shadow-brand: 0 14px 36px -14px rgba(68,100,135,.35);

  --radius: 10px;
  --radius-xl: 18px;
  --container: 1440px;

  --font-sans:'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif:'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-default);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 700px) { .container { padding-inline: 20px; } }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.005em; color: var(--brand-900); margin: 0 0 16px; line-height: 1.15; }
h1 { font-size: clamp(42px, 5.2vw, 72px); font-weight: 500; }
h1 em { font-style: italic; color: var(--brand-500); font-weight: 500; }
h2 { font-size: clamp(30px, 3.2vw, 44px); }
h2 em { font-style: italic; color: var(--brand-500); font-weight: 500; }
h3 { font-size: 24px; }
p { margin: 0 0 16px; color: var(--fg-default); }
p.lead { font-size: 19px; color: var(--fg-muted); font-weight: 400; line-height: 1.55; max-width: 62ch; }

.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }
.section--alt { background: var(--surface-2); }
.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 16px; display: inline-block; }
.section-title { max-width: 22ch; }
.section-sub { color: var(--fg-muted); max-width: 62ch; font-size: 17px; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 150ms, box-shadow 150ms, background 150ms, color 150ms;
  text-decoration: none;
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn-ghost { background: transparent; color: var(--brand-800); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-800); }
.btn svg { width: 16px; height: 16px; }

/* HEADER */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,251,252,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--brand-900); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--brand-900); }
.brand-text .name .s { color: var(--brand-400); }
.brand-text .tag { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; }
nav.primary { display: none; gap: 6px; align-items: center; }
@media (min-width: 960px) { nav.primary { display: flex; } }
nav.primary > a {
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-default);
  text-decoration: none;
}
nav.primary > a:hover, nav.primary > a.active { background: var(--brand-50); color: var(--brand-800); }

/* Dropdown: pure CSS (hover + focus-within). Trigger may be <a> or <button>. */
.nav-dd { position: relative; }
.nav-dd > .dd-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; color: var(--fg-default);
  text-decoration: none; cursor: pointer;
  background: transparent; border: 0; line-height: inherit;
}
.nav-dd > button.dd-trigger { cursor: default; }
.nav-dd > .dd-trigger:hover,
.nav-dd:hover > .dd-trigger,
.nav-dd:focus-within > .dd-trigger,
.nav-dd.active > .dd-trigger { background: var(--brand-50); color: var(--brand-800); }
.nav-dd > .dd-trigger svg { width: 10px; height: 10px; opacity: .65; transition: transform 180ms ease; }
.nav-dd:hover > .dd-trigger svg,
.nav-dd:focus-within > .dd-trigger svg { transform: rotate(180deg); }

.nav-dd .dd-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 300px; background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 32px -8px rgba(14,16,20,.18), 0 2px 6px rgba(14,16,20,.06);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 100;
}
/* Invisible hover bridge so the menu doesn't close when moving cursor down */
.nav-dd .dd-menu::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.nav-dd:hover .dd-menu,
.nav-dd:focus-within .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-dd .dd-menu a {
  display: block; padding: 12px 14px; border-radius: 8px;
  color: var(--fg-default); text-decoration: none;
}
.nav-dd .dd-menu a:hover { background: var(--brand-50); }
.nav-dd .dd-menu a strong { display: block; font-size: 14px; font-weight: 600; color: var(--brand-900); margin-bottom: 2px; }
.nav-dd .dd-menu a span { display: block; font-size: 12px; color: var(--fg-muted); line-height: 1.4; }
.nav-dd .dd-menu a.active { background: var(--brand-50); }
.nav-dd .dd-menu a.active strong { color: var(--brand-700); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.lang-placeholder {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--fg-subtle); padding: 6px 10px; border-radius: 6px;
  border: 1px dashed var(--border-strong); background: var(--surface);
}

/* FOOTER */
footer.site {
  background: var(--brand-900); color: var(--brand-100);
  padding-block: 64px 32px; margin-top: 80px;
}
footer.site a { color: var(--brand-200); }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand-logo { height: 96px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; opacity: .95; }
@media (max-width: 700px) { .foot-brand-logo { height: 80px; } }
.foot-col h4 { color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-about { font-size: 14px; line-height: 1.65; color: var(--brand-200); margin: 0 0 16px; max-width: 38ch; }
.foot-247 { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 500; }
.foot-247 .dot { width: 8px; height: 8px; border-radius: 50%; background: #7fdca1; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--brand-300); }
.foot-bottom .powered-by { text-align: right; }
.foot-bottom .powered-by a { color: var(--brand-200); text-decoration: none; }
.foot-bottom .powered-by a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .foot-bottom { justify-content: center; text-align: center; } .foot-bottom .powered-by { flex: 0 1 100%; } }

/* PAGE HERO (Unterseiten) */
.page-hero {
  padding-block: 96px 72px;
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border-default);
}
.page-hero .crumbs { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 16px; }
.page-hero .crumbs a { color: var(--brand-600); }
.page-hero h1 { margin-bottom: 20px; max-width: 20ch; }
.page-hero .lead { max-width: 58ch; }

/* CARDS */
.card {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card h3 { margin-top: 0; }
.card .num {
  font-family: var(--font-serif); font-weight: 600; font-size: 14px;
  color: var(--brand-500); margin-bottom: 12px; letter-spacing: .08em;
}
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li {
  padding-left: 24px; position: relative; font-size: 15px; color: var(--fg-default);
}
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: .75em;
  width: 8px; height: 2px; background: var(--brand-400); border-radius: 2px;
}

/* GRID util */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* SKIP link */
.skip { position: absolute; left: 12px; top: -80px; background: var(--brand-700); color:#fff; padding:10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color:#fff; }

/* ----- Mobile menu (pure-CSS hamburger via hidden checkbox) ----- */
.nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-btn { display: none; }

@media (max-width: 959px) {
  .header-row { position: relative; }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    margin-right: 12px;
    z-index: 90;
  }
  .nav-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brand-900);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 200ms, opacity 200ms;
  }
  .nav-toggle:checked ~ .header-row .nav-toggle-btn span:nth-child(1),
  .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
    z-index: 80;
  }
  .nav-toggle:checked ~ nav.primary {
    display: flex;
  }
  nav.primary > a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-default);
    font-size: 16px;
    border-radius: 0;
  }
  nav.primary > a:last-child {
    border-bottom: 0;
  }
}

/* Mobile-only CTA inside the dropdown: desktop hides it, mobile hides .header-cta */
.nav-cta-mobile { display: none; }
@media (max-width: 959px) {
  .header-cta { display: none; }
  .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    border-radius: 999px !important;
    padding: 14px 20px !important;
    border-bottom: 0 !important;
  }

  /* Mobile dropdowns: each wraps as its own block; submenu collapsed by default, toggled via .open class. */
  .nav-dd {
    display: flex; flex-direction: column;
    border-bottom: 1px solid var(--border-default);
  }
  .nav-dd > .dd-trigger {
    padding: 14px 12px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
    text-align: left;
    color: var(--fg-default);
  }
  .nav-dd.open > .dd-trigger { background: var(--brand-50); color: var(--brand-800); }
  .nav-dd > button.dd-trigger { cursor: pointer; }
  .nav-dd > .dd-trigger svg {
    display: inline-block;
    width: 12px; height: 12px;
    opacity: .65;
    transition: transform 200ms;
  }
  .nav-dd.open > .dd-trigger svg { transform: rotate(180deg); }
  .nav-dd .dd-menu {
    display: none;
    position: static;
    opacity: 1; transform: none; pointer-events: auto;
    background: var(--surface-2);
    border: 0; border-radius: 0; box-shadow: none;
    padding: 0; min-width: 0;
    border-top: 1px solid var(--border-default);
  }
  .nav-dd.open .dd-menu { display: block; }
  .nav-dd .dd-menu::before { display: none; }
  .nav-dd .dd-menu a {
    padding: 12px 12px 12px 28px;
    border-bottom: 1px solid var(--border-default);
    border-radius: 0;
    font-size: 15px;
  }
  .nav-dd .dd-menu a:last-child { border-bottom: 0; }
  .nav-dd .dd-menu a strong { font-size: 15px; margin-bottom: 0; font-weight: 500; }
  .nav-dd .dd-menu a span { display: none; }
}
