/* Tobias Franke Coaching & Beratung – Stylesheet
   Farben aus dem Logo. Schrift Montserrat liegt lokal (keine Google-Fonts-Verbindung, DSGVO). */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-900: #1c3424;   /* Logo-Hintergrund */
  --green-800: #24432f;
  --green-600: #2f6b45;   /* Links/Buttons auf Hell (Kontrast > 4.5:1) */
  --green-500: #68a77a;   /* Logo-Ring */
  --lime: #cbf090;        /* Logo-Punkt */
  --mint-100: #e4eae5;
  --mint-50: #f3f6f3;
  --text: #16241b;
  --muted: #4a5a4f;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Sprungziele nicht unter dem fixierten Kopfbereich verstecken.
   --header-h wird per main.js aus der echten Header-Höhe gesetzt; die Werte hier sind der Fallback. */
:root { --header-h: 80px; }
@media (max-width: 720px) { :root { --header-h: 112px; } }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
/* Abschnitte haben schon Innenabstand oben – nur so weit scrollen, dass die Überschrift knapp unter dem Header steht */
.section[id] { scroll-margin-top: calc(var(--header-h) + 1.75rem - clamp(3.5rem, 8vw, 6rem)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--green-900); } }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--mint-50); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--green-900); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 100; background: var(--green-900); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
@media (hover: hover) { .brand:hover { color: #fff; } }
.brand img { width: 52px; height: 52px; }
.brand > span { line-height: 1.15; }
.brand__amp { display: block; color: var(--lime); font-weight: 500; font-style: italic; font-size: .82rem; letter-spacing: .01em; }
.nav { display: flex; gap: .25rem .6rem; flex-wrap: wrap; align-items: center; }
.nav a { color: #e9f1ea; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .35rem 0; }
@media (hover: hover) { .nav a:hover { color: var(--lime); } }
/* Aktiver Abschnitt beim Scrollen (main.js setzt .is-active) */
.nav a:not(.btn) { padding: .35rem .7rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a.is-active { background: var(--green-600); color: #fff; }
.nav .btn { padding: .55rem 1.2rem; color: var(--green-900); }
@media (hover: hover) { .nav .btn:hover { color: var(--lime); } }

.site-header .header-cta { display: none; }
@media (max-width: 720px) {
  .site-header .container { padding: .55rem 0 .5rem; gap: .4rem .75rem; min-height: 0; }
  .brand { font-size: 1.02rem; gap: .55rem; min-width: 0; line-height: 1.15; }
  .brand img { width: 40px; height: 40px; }
  .brand__amp { display: block; font-size: .8rem; }
  .site-header .header-cta { display: inline-flex; margin-left: auto; padding: .4rem .8rem; font-size: .78rem; white-space: nowrap; color: var(--green-900); }
  @media (hover: hover) { .site-header .header-cta:hover { color: var(--lime); } }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: .3rem 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .4rem; }
  .nav a:not(.btn) { font-size: .88rem; padding: .3rem .6rem; }
  /* Text bündig mit Logo/Button, Hervorhebung darf in den Rand ragen */
  .nav a:first-child { margin-left: -.6rem; }
  .nav a:nth-last-child(2) { margin-right: -.6rem; }
  .nav .btn { display: none; }
}
/* Sehr schmale Handys: Name und Button bleiben in einer Zeile */
@media (max-width: 400px) {
  .brand { font-size: .95rem; gap: .45rem; }
  .brand img { width: 36px; height: 36px; }
  .brand__amp { font-size: .7rem; }
  .site-header .header-cta { padding: .35rem .65rem; font-size: .74rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--lime); color: var(--green-900); font-weight: 600; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--lime);
  transition: background .15s, color .15s;
}
@media (hover: hover) { .btn:hover { background: transparent; color: var(--lime); } }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
@media (hover: hover) { .btn--outline:hover { border-color: var(--lime); color: var(--lime); } }
.btn--dark { background: var(--green-900); color: #fff; border-color: var(--green-900); }
@media (hover: hover) { .btn--dark:hover { background: transparent; color: var(--green-900); } }

/* Hero */
.hero { background: var(--green-900); color: #fff; overflow: hidden; position: relative; z-index: 0; isolation: isolate; }
.hero .container { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--lime); }
.hero .tagline { font-style: italic; color: var(--lime); font-size: 1.1rem; margin-bottom: 1.25rem; }
.hero p.lead { color: #d6e2d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 clamp(2.5rem, 6vw, 5.5rem); }
.hero-mark { justify-self: end; width: min(100%, 360px); opacity: .9; }
.hero-mark svg { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-actions { margin-bottom: 1rem; }
  .hero-mark { display: none; }
  .hero-actions { margin-bottom: 3rem; }
}

/* Leistungen: drei Gruppen (Desktop: links Unternehmen + Persönlich, rechts Karriere), jede Leistung ein umrandetes Aufklapp-Feld (<details>, ohne JavaScript) */
.service-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 901px) {
  .service-groups { grid-template-rows: auto 1fr; }
  #karriere { grid-column: 2; grid-row: 1 / span 2; }
  #persoenlich { grid-column: 1; grid-row: 2; }
}
@media (max-width: 900px) { .service-groups { grid-template-columns: 1fr; } }
.service-group h3 {
  font-size: 1.3rem; color: var(--green-900);
  margin: 0 0 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid #b9cbbd;
}
.services { display: grid; gap: .75rem; }

.service { background: #fff; border: 1.5px solid #b9cbbd; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
@media (hover: hover) { .service:hover { border-color: var(--green-600); } }
.service[open] { border-color: var(--green-600); box-shadow: 0 12px 32px -22px rgba(28,52,36,.5); }
.service > summary {
  list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1.1rem 1.3rem; border-radius: 10px;
}
.service > summary::-webkit-details-marker { display: none; }
.service .more { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--green-600); }
.service .more::after {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 7px; border: 1px solid var(--mint-100);
  background: #fff no-repeat center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%231c3424' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .25s, background-color .2s;
}
@media (hover: hover) { .service > summary:hover .more::after { border-color: #b9cbbd; } }
.service[open] .more::after { transform: rotate(180deg); }
.service[open] .more { font-size: 0; gap: 0; }  /* geöffnet: nur Pfeil */
.service[open] > summary { background: var(--mint-50); border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--mint-100); }
.service h4 { color: var(--green-900); font-size: 1.22rem; line-height: 1.3; margin: 0; }
/* einheitliche Abstände im aufgeklappten Bereich */
.service-body { padding: 1.1rem 1.25rem 1.25rem; }
.service .claim { font-weight: 600; color: var(--green-600); font-size: .95rem; line-height: 1.45; margin: 0 0 .7rem; }
.service-body p { color: var(--muted); font-size: .97rem; line-height: 1.6; margin: 0 0 1.1rem; }
.service .meta { padding-top: .9rem; border-top: 1px solid var(--mint-100); display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.service .meta a { font-weight: 600; text-decoration: none; }
@media (hover: hover) { .service .meta a:hover { text-decoration: underline; } }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .service::details-content { height: 0; overflow: hidden; transition: height .3s ease, content-visibility .3s allow-discrete; }
  .service[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .service::details-content, .service .more::after { transition: none; } }

/* Über mich */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about > * { min-width: 0; }
.about picture { display: block; }
.about img { border-radius: var(--radius); width: 100%; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.facts li { padding-left: 1.8rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--green-500); box-shadow: inset 0 0 0 3px var(--mint-50); outline: 2px solid var(--green-500); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about img { max-width: min(340px, 100%); } }

/* Kontakt */
.contact { background: var(--green-900); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #d6e2d8; }
.contact .eyebrow { color: var(--lime); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-grid { display: grid; gap: .9rem; margin-top: 2rem; }
.contact-card { background: var(--green-800); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.contact-card h3 { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin: 0 0 .35rem; }
.contact-card a, .contact-card p { color: #fff; font-size: 1.05rem; font-weight: 500; margin: 0; word-break: break-word; }
@media (hover: hover) { .contact-card a:hover { color: var(--lime); } }

/* Formular */
.contact-form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; gap: 1.9rem; }
.form-title { font-size: 1.35rem; color: var(--green-900); margin: 0; }
.field { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.9rem 1.25rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--green-900); padding: 0; }
.field legend { margin-bottom: .9rem; }
.req { color: var(--green-600); }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid #c9d4cc; border-radius: 10px; padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #c9d4cc; border-radius: 10px; padding: .75rem .9rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(104,167,122,.3); }
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: #b3261e; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.checks { display: grid; grid-template-columns: 1fr; gap: .85rem; }
.check, .radio { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .93rem !important; color: var(--text) !important; line-height: 1.4; cursor: pointer; }
.check input, .radio input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--green-600); flex: none; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: .9rem 1.8rem; }
@media (hover: hover) { .contact-form .btn:hover { background: var(--green-600); color: #fff; } }
.captcha__row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.captcha canvas { border: 1.5px solid #c9d4cc; border-radius: 10px; width: 200px; height: 60px; background: var(--mint-50); }
.captcha__neu { font: inherit; font-size: .88rem; font-weight: 600; color: var(--green-600); background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.captcha input { max-width: 200px; text-transform: uppercase; letter-spacing: .25em; font-weight: 600; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #fdf3e7; color: #6b3d00; font-size: .93rem; border: 1px solid #f0d2a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #13241a; color: #b9c9bd; font-size: .9rem; padding: 2rem 0; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: #e3ece5; }
.site-footer nav { display: flex; gap: 1.25rem; }

/* Rechtstexte / Unterseiten */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.page-head { background: var(--mint-50); padding: 3rem 0 2rem; }

/* Platzhalter: vor Veröffentlichung ersetzen (scripts/check.sh schlägt sonst an) */
.platzhalter { background: #fff3a8; color: #3b3200; outline: 2px dashed #c9a400; padding: 0 .25em; border-radius: 3px; }
.contact .eyebrow { color: var(--lime); }
.service .meta a { font-weight: 600; text-decoration: none; }
@media (hover: hover) { .service .meta a:hover { text-decoration: underline; } }

/* Druckansicht: schlicht, schwarz auf weiß, ohne Navigation */
@media print {
  @page { margin: 1.8cm; }
  body::before { content: "Tobias Franke Coaching & Beratung · franke-coaching.com"; display: block; font-weight: 700; font-size: 12pt; padding-bottom: .4cm; margin-bottom: .6cm; border-bottom: 1px solid #999; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .skip-link, .hero-actions, .hero-mark, .nav, .site-footer nav, .service .meta a { display: none !important; }
  .hero, .contact, .site-footer, .section--tint { background: #fff !important; color: #000 !important; }
  .hero h1, .hero h1 span, .hero .tagline, .hero p.lead, .contact h2, .contact .lead, .contact .eyebrow,
  .contact-card h3, .contact-card a, .contact-card p, .site-footer { color: #000 !important; }
  .hero .container { display: block; padding-top: 0; }
  .section { padding: 1.2rem 0; }
  .container { width: 100%; }
  .service-groups { display: block; }
  .services { display: block; }
  .service { border: 1px solid #999; box-shadow: none; margin-bottom: .6rem; break-inside: avoid; }
  .service > summary { min-height: 0; padding: .6rem 1rem; background: none !important; }
  .service .more { display: none; }
  .service-body { padding: .2rem 1rem .6rem; }
  .contact-form { display: none; }
  .contact-layout { display: block; }
  .about { display: block; }
  .about img { width: 4cm; float: right; margin: 0 0 .5rem 1rem; }
  .contact-grid { display: block; }
  .contact-card { background: none; padding: .2rem 0; }
  .platzhalter { background: none; outline: none; }
  a { color: #000; text-decoration: none; }
  h2, h3 { break-after: avoid; }
}

/* Sehr schmale Handys (z. B. iPhone SE/mini) */
.hero .container > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  .container { width: min(100% - 2rem, var(--max)); }
}

/* Rechtstexte: Listen */
.legal ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal .toc { columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .legal .toc { columns: 1; } }
.legal .meta-list { list-style: none; padding: 1rem 1.2rem; background: var(--mint-50); border-radius: 10px; font-size: .95rem; }
.legal p, .legal li { overflow-wrap: anywhere; }

/* Themenseiten (Bewerbungscoaching, Neuorientierung, Vertrieb, Recruiting) */
.hero--sub .container { padding-top: clamp(2.2rem, 5vw, 3.8rem); }
.hero--sub h1 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
.hero--sub .hero-mark { width: min(100%, 260px); }
.hero--sub .hero-actions { margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.breadcrumb { font-size: .85rem; color: #b9c9bd; margin-bottom: 1.1rem; }
.breadcrumb a { color: #e3ece5; }
@media (hover: hover) { .breadcrumb a:hover { color: var(--lime); } }
.topic { max-width: 48rem; }
.topic h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin-top: 2.6rem; color: var(--green-900); }
.topic .eyebrow + h2 { margin-top: 0; }
.topic h3 { font-size: 1.15rem; color: var(--green-900); margin: 1.8rem 0 .5rem; }
.topic > p, .topic .facts { color: var(--text); }
.topic .facts { margin: 1rem 0 1.4rem; }
.steps { list-style: none; counter-reset: schritt; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 1rem; }
.steps li { counter-increment: schritt; position: relative; padding-left: 3rem; min-height: 2.2rem; }
.steps li::before { content: counter(schritt); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green-900); color: var(--lime); font-weight: 700; display: grid; place-items: center; }
.steps strong { color: var(--green-900); }
.faqs { margin-top: 1.5rem; }
.service.faq > summary { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; }
.service.faq h3 { color: var(--green-900); font-size: 1.05rem; line-height: 1.4; margin: 0; }
.service.faq .more { font-size: 0; gap: 0; flex: none; }
.service.faq .service-body p { margin: 0; }
.cta-band .topic-links { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.cta-band .topic-links a { color: #e3ece5; }
.cta-band h2 { color: #fff; }
@media (hover: hover) { .cta-band .topic-links a:hover { color: var(--lime); } }
.cta-band .hero-actions { margin: 1.6rem 0 2.2rem; }
.cta-band .cta-weitere { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
/* Startseite: Link von der Leistung zur Themenseite */
.service-body p.service-more { margin: -.3rem 0 1.1rem; }
.service-more a { font-weight: 600; text-decoration: none; }
@media (hover: hover) { .service-more a:hover { text-decoration: underline; } }
.site-footer nav { flex-wrap: wrap; gap: .4rem 1.25rem; }
@media print { .breadcrumb, .cta-band .hero-actions, .cta-band .topic-links, .cta-weitere { display: none !important; } .hero--sub h1 { color: #000 !important; } }
