/* Terminseite cordula.coach – ruhig, klar, warm */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
    --cream: #fffdf8;
    --paper: #f6f1e8;
    --sand: #faf5ec;
    --deep: #143852;
    --orange: #c56900;
    --orange-dark: #a35700;
    --blue: #7ca6d6;
    --line: #e8dfcf;
    --field: #d9cdb8;
    --muted: #5a6b78;
    --ok: #2f6b4f;
    --err: #9b2c1f;
    --radius: 14px;
    --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--deep);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--orange); }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--cream); padding: 8px 12px; border: 1px solid var(--line); }

/* Kopf und Fuß */
.top { background: var(--cream); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--deep); }
.logo { display: block; width: 150px; max-width: 42vw; height: auto; }
.logo-text { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.top-link { color: var(--deep); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.top-link:hover { color: var(--orange); }

main.wrap { padding-top: 40px; padding-bottom: 64px; }

.foot { background: var(--cream); border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 8px; }
.foot a { color: var(--muted); }
.foot-note { margin: 0; max-width: 46em; }

/* Typografie */
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 14px; }
h2 { font-size: 1.7rem; margin: 0 0 14px; }
p { margin: 0 0 14px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.lead { font-size: 1.15rem; max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { margin: 0 0 28px; }
.back { margin: 0 0 18px; }
.back a { color: var(--muted); text-decoration: none; font-size: 15px; }
.back a:hover { color: var(--orange); }

/* Flächen */
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 24px; }
@media (min-width: 720px) { .panel { padding: 32px; } }

/* Übersicht */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 26px 24px; background: var(--cream);
    border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--deep); text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-visible { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 56, 82, .08); color: var(--deep); }
.card-meta { font-size: 13px; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.card-cta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--orange); }

/* Knöpfe */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 24px;
    background: var(--orange); color: #fff;
    border: 1px solid var(--orange); border-radius: 999px;
    font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--field); }
.btn-ghost:hover { background: var(--sand); color: var(--deep); border-color: var(--orange); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #7f2318; border-color: #7f2318; }
.btn-danger-ghost { color: var(--err); }
.btn[disabled], .is-disabled { opacity: .45; pointer-events: none; }

/* Wochenansicht */
.weeknav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 20px; }
.weeklabel { order: -1; width: 100%; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.wide-only { display: none; }
@media (min-width: 560px) { .wide-only { display: inline; } }
@media (min-width: 720px) { .weeklabel { order: 0; width: auto; } }
.days { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .days { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } }
.day { border-top: 1px solid var(--line); padding-top: 12px; }
.day h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.day h3 span { color: var(--muted); font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .slots { flex-direction: column; } }
.slot {
    display: block; min-width: 76px; padding: 8px 12px;
    border: 1px solid var(--orange); border-radius: 999px;
    color: var(--orange); font-weight: 700; font-size: 15px; text-align: center; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.slot:hover, .slot:focus-visible { background: var(--orange); color: #fff; }
.none { margin: 0; font-size: 14px; color: var(--muted); }

/* Zusammenfassung */
.summary { margin: 0 0 26px; padding: 2px 0 2px 18px; border-left: 3px solid var(--orange); }
.summary-type { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.summary-date { margin: 4px 0 2px; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.summary-time { margin: 0; color: var(--muted); }

.details { margin: 0 0 26px; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .details div { grid-template-columns: 210px 1fr; } }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

.place { margin: 0 0 24px; padding: 18px 20px; background: var(--sand); border-radius: 12px; }
.place p:last-child { margin-bottom: 0; }
.action-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }

/* Formular */
.form .row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; margin: 0 0 6px; font-weight: 700; }
.hint { margin: -2px 0 8px; font-size: 14px; color: var(--muted); }
.req { color: var(--orange); }
.opt { font-weight: 400; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="file"], textarea {
    width: 100%; padding: 12px 14px;
    background: #fff; color: var(--deep);
    border: 1px solid var(--field); border-radius: 10px;
    font: inherit;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(124, 166, 214, .35); }
.has-error input, .has-error textarea { border-color: var(--err); }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--err); }

.option {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 0 0 10px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    font-weight: 400; cursor: pointer;
}
.option:has(input:checked) { border-color: var(--orange); background: #fff8ef; }
.option input { margin-top: 5px; accent-color: var(--orange); }
.option small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Fragen der Bewerbung */
.questions { margin: 28px 0 8px; padding: 24px 0 4px; border-top: 1px solid var(--line); }
.questions h2 { margin: 0 0 6px; }
.questions > .hint { margin: 0 0 22px; }
.question label, .question legend { line-height: 1.45; }
.q-nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin: 0 10px 0 0; border-radius: 50%;
    background: var(--orange); color: #fff; font-size: 14px; vertical-align: 1px;
}
.question .sub-label { margin-top: 14px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 6px; }
@media (min-width: 600px) { .scale { grid-template-columns: repeat(10, 1fr); } }
.scale-step { margin: 0; cursor: pointer; }
.scale-step input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-step span {
    display: flex; align-items: center; justify-content: center; height: 44px;
    background: #fff; border: 1px solid var(--field); border-radius: 10px;
    font-weight: 700; color: var(--deep); transition: background .15s ease, border-color .15s ease;
}
.scale-step:hover span { border-color: var(--orange); }
.scale-step input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.scale-step input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124, 166, 214, .45); }
.has-error .scale-step span { border-color: var(--err); }
.scale-ends { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.consent .option { font-size: 15px; }
.consent .option input { flex: 0 0 auto; width: 18px; height: 18px; }
.has-error .option { border-color: var(--err); }

/* Antworten in der Terminansicht */
.answers { margin: 0 0 28px; }
.answer { margin: 0 0 12px; padding: 14px 18px; background: var(--sand); border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; }
.answer-q { margin: 0 0 6px; font-weight: 700; }
.answer-a { margin: 0; overflow-wrap: anywhere; }
.calendar-action { margin: 0 0 24px; }

.privacy { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid; border-radius: 12px; }
.notice-info { background: #eef4fb; border-color: #c9daef; }
.notice-ok { background: #eef6f1; border-color: #c4dfcf; color: var(--ok); }
.notice-error { background: #fbefec; border-color: #efcfc8; color: var(--err); }

/* Einrichtung */
.steps { margin: 0 0 20px; padding-left: 22px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.check-icon { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.is-ok .check-icon { background: #e1f0e7; color: var(--ok); }
.is-fail .check-icon { background: #f7dcd6; color: var(--err); }
.is-skip .check-icon { background: var(--sand); color: var(--muted); }
.code { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font: 14px/1.5 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.inline { display: inline; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list .code { margin: 6px 0 0; }
.saved { margin: 0 0 10px; color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.failed { margin: 0 0 16px; color: var(--err); font-weight: 600; }
.panel-fail { border-color: #efcfc8; }
input.secret { -webkit-text-security: disc; text-security: disc; font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; }
details.change > summary { display: inline-block; margin: 0 0 14px; color: var(--orange); font-weight: 700; cursor: pointer; list-style: none; }
details.change > summary::-webkit-details-marker { display: none; }
details.change > summary::before { content: "▸ "; }
details.change[open] > summary::before { content: "▾ "; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
