/* =========================================================================
   studies-services.de – zentrales Stylesheet
   Design-System per CSS-Variablen. Farbe zentral hier oben austauschbar.
   Keine externen Fonts/Frameworks (DSGVO-freundlich, schnell).
   ========================================================================= */

:root {
  /* --- Markenfarbe (frisches Petrol/Teal) – zum Ändern nur hier anpassen --- */
  --brand:      #0f766e;   /* Primär (Teal 700) */
  --brand-600:  #0d9488;
  --brand-700:  #0f766e;
  --brand-800:  #115e59;
  --brand-050:  #f0fdfa;   /* sehr helle Fläche */
  --hero-from:  #134e4a;   /* Hero-Verlauf dunkel */
  --hero-to:    #0f766e;   /* Hero-Verlauf hell  */

  /* --- Akzent (Call-to-Action) --- */
  --accent:     #f59e0b;   /* Amber 500 */
  --accent-600: #d97706;

  /* --- Neutrale Töne (aus dem Astra-Original übernommen) --- */
  --ink:    #0f172a;   /* Überschriften dunkel */
  --ink-2:  #1e293b;   /* Astra heading color */
  --text:   #475569;   /* Fließtext */
  --muted:  #64768e;   /* gedämpft (nah am Original #67768e) */
  --line:   #e2e8f0;   /* Rahmen/Trenner */
  --bg:     #ffffff;
  --bg-tint:#f8fafc;   /* leicht getönter Abschnitt */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.07);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.08);
  --maxw: 1120px;
  --header-h: 72px;
}

/* --- Reset / Basis ------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; border: 2px solid transparent; transition: .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #3b2600; }
.btn-accent:hover { background: var(--accent-600); color: #3b2600; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-050); color: var(--brand-800); }

/* --- Header / Navigation ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; color: var(--brand-700); flex: none; }
.brand .name { font-size: 1.05rem; letter-spacing: -.02em; }
.brand .name small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: .97rem;
  padding: 9px 12px; border-radius: 8px; transition: .15s;
}
.nav-links a:hover { background: var(--brand-050); color: var(--brand-800); text-decoration: none; }
.nav-links a.active { color: var(--brand-800); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; color: var(--ink);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(115deg, var(--hero-from) 0%, var(--hero-to) 78%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 10%, rgba(255,255,255,.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 92px) 0;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 40ch; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  width: 320px; height: 320px; object-fit: cover; border-radius: 50%;
  background: #fff; padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}

/* --- Abschnitte ---------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--bg-tint); }
.section-brand { background: var(--brand-050); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow-line {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: 10px;
}

/* --- Service-/Feature-Karten -------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd8e3; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700); margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text); font-size: .98rem; }
.card .card-link {
  margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--brand-700);
  display: inline-flex; align-items: center; gap: .35rem;
}
.card .card-link svg { width: 18px; height: 18px; transition: transform .15s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* --- Media-Text (Bild + Text nebeneinander) ------------------------------ */
.media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.media.reverse .media-img { order: 2; }
.media-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.media-body .eyebrow-line { margin-bottom: 10px; }

/* --- Zwei-Spalten-Feature (Unterseiten) ---------------------------------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.feature-block {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.feature-block .icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700); margin-bottom: 18px;
}
.feature-block .icon svg { width: 28px; height: 28px; }
.feature-block h4 { font-size: 1.2rem; }

/* --- Listen mit Häkchen -------------------------------------------------- */
ul.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
ul.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text);
}
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: var(--brand-050);
  -webkit-mask: var(--check) center / 14px no-repeat; mask: var(--check) center / 14px no-repeat;
}
ul.checklist li::after {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; color: var(--brand-700); font-weight: 700; font-size: .8rem;
  background: var(--brand-050); border-radius: 6px;
}

/* --- Seiten-Intro (Unterseiten-Kopf) ------------------------------------- */
.page-hero {
  background: linear-gradient(115deg, var(--hero-from) 0%, var(--hero-to) 85%);
  color: #fff; padding: clamp(48px, 7vw, 84px) 0; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* --- Prosa-Seiten (Impressum/Datenschutz/Über mich) ---------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .ref-list { list-style: none; padding: 0; }
.prose .ref-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .97rem; color: var(--text);
}
.prose .ref-list li:last-child { border-bottom: 0; }

/* --- CTA-Band ------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(115deg, var(--hero-from), var(--hero-to));
  color: #fff; border-radius: var(--radius); padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 24px; }

/* --- Kontaktseite -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .info-item .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand-050);
  color: var(--brand-700); display: grid; place-items: center; flex: none;
}
.contact-info .info-item .icon svg { width: 22px; height: 22px; }
.contact-info .info-item strong { color: var(--ink); display: block; }

form.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; font-size: .95rem; }
.form-row .req { color: #dc2626; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.form-consent input { margin-top: 4px; flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: none; padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .95rem; }
.form-note.ok  { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-note.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .mark { color: #fff; }
.site-footer p { color: #94a3b8; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cbd5e1; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #94a3b8; font-size: .88rem;
}

/* --- Helfer -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }
.lead-narrow { max-width: 66ch; margin-left: auto; margin-right: auto; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 240px; height: 240px; }
  .media, .feature-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .media.reverse .media-img { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 32px 22px; }
  .brand .name small { display: none; }
}

@media (min-width: 769px) { .nav-links { display: flex !important; } }
