/* ══════════════════════════════════════════════════════════
   sauer-logopaedie.de – Stylesheet
   Modernisiert nach Gilis/Nielsen-Prinzipien
   ══════════════════════════════════════════════════════════ */

:root {
    --green-light: rgba(160, 210, 135, .8);
    --green-light-solid: #A0D287;
    --green-accent: #6CB747;
    --green-border: #8ACC6A;
    --green-bg: rgba(108, 183, 71, .08);
    --teal: #6CB747;
    --teal-hover: #5aa23a;
    --link: #2D77BC;
    --link-hover: #1a5a94;
    --red: #c20000;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --gray: #bbb;
    --gray-light: #e8e8e8;
    --gray-caption: #aaa;
    --bg: #fff;
    --bg-content: rgba(255, 255, 255, .96);
    --bg-section-alt: #f8faf6;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: var(--font);
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,.1);
    --transition: .25s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg) url('../../img/logopaedische-praxis-fuerstenfeldbruck.jpg') no-repeat fixed top center;
    background-size: cover;
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6, .title {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: 34px; }
h2 { font-size: 27px; margin-bottom: 14px; }
h3 { font-size: 22px; }
h4, h5, h6 { font-size: 19px; }
.title { display: block; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, a.title, .title a { text-decoration: none; color: inherit; }
p + .title, p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 32px; }

/* ── Hyperlinks ─────────────────────────────────────────── */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--transition); }
a:hover { color: var(--link-hover); text-decoration: none; }
header a.logo:hover, footer a:hover { background: transparent !important; }
a img { border: none; }

/* ── Buttons ────────────────────────────────────────────── */
.button,
a.button,
button.button {
    display: inline-block;
    margin: 15px 0;
    padding: 14px 36px;
    background-color: var(--teal);
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
    letter-spacing: .01em;
}
.button:hover,
a.button:hover,
button.button:hover {
    background-color: var(--teal-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ── General Elements ───────────────────────────────────── */
hr { clear: both; margin: 20px auto 28px; height: 0; background: transparent; border: none; border-bottom: 1px solid var(--gray-light); }
p { margin: 0 0 18px; max-width: 72ch; }
p + ul { margin-top: -8px; }
ul { padding: 0 0 0 20px; margin: 0 0 24px; list-style-type: none; }
ul li { position: relative; padding-left: 4px; margin-bottom: 6px; }
ul li::before { content: ""; position: absolute; left: -16px; top: 11px; width: 6px; height: 6px; background: var(--green-accent); border-radius: 50%; }
strong { font-weight: 600; }
img, iframe { max-width: 100%; height: auto; }
input, textarea { font-size: 16px; font-family: var(--font); }

/* ── Utility ────────────────────────────────────────────── */
.rot { color: var(--red); }
.clear { clear: both; }
.anchor { position: relative; top: -80px; display: block; }

/* ── Layout Structure ───────────────────────────────────── */
.innerwrap, header nav {
    width: 88%;
    max-width: 1100px;
    margin: 0 auto;
}

header { padding: 10px 0 0; margin: 0 auto; background: var(--green-light); }
header .logo img { position: relative; z-index: 9; max-height: 55px; width: auto; }

#main .innerwrap {
    padding: 45px 50px;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: var(--bg-content);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ── Sections ───────────────────────────────────────────── */
.section {
    padding: 48px 0 40px;
}
.section:first-child { padding-top: 10px; }
.section + .section {
    border-top: 3px solid var(--green-light-solid);
    border-image: linear-gradient(to right, var(--green-light-solid), transparent) 1;
}

/* Hero */
.section#hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 24px;
}
.section#hero .lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 68ch;
}

/* ── Therapy Cards (Flexbox) ────────────────────────────── */
.therapy-grid {
    display: flex;
    gap: 28px;
    margin-top: 24px;
}
.therapy-card {
    flex: 1;
    background: var(--bg-section-alt);
    border-left: 4px solid var(--green-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 28px 28px 20px;
    transition: box-shadow var(--transition);
}
.therapy-card:hover {
    box-shadow: var(--shadow-md);
}
.therapy-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}
.therapy-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
}
.therapy-card ul { margin-bottom: 0; }
.therapy-card ul li { font-size: 16px; margin-bottom: 4px; }

/* ── Navigation ─────────────────────────────────────────── */
header .menuwrap {
    position: relative;
    z-index: 10;
    top: -47px;
    background-color: var(--green-light);
    color: var(--text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
header .menuwrap.sticky {
    position: fixed;
    margin: auto;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    background-color: rgba(160, 210, 135, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
header .menuwrap a.mobile {
    display: none;
    visibility: hidden;
    margin: 0 15px;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
}
header .menuwrap a.mobile::after { content: " \2193"; }
header .menuwrap.open a.mobile::after { content: " \2191"; }
header .menuwrap a.mobile:hover { color: #fff; }
header nav { position: relative; }
header nav ul { list-style-type: none; padding: 0; margin: 0 0 0 300px; }
header nav ul li { float: left; }
header nav ul li::before { display: none; }
header nav ul li a {
    display: block;
    margin: 0;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .02em;
    transition: background-color var(--transition), color var(--transition);
    border-radius: 3px;
}
header nav ul li a:hover,
header nav ul li a.active {
    background-color: var(--green-accent);
    color: #fff;
}

/* ── Contact Section (2-column) ─────────────────────────── */
.contact-grid {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-top: 20px;
}
.contact-info {
    flex: 0 0 340px;
}
.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}
.contact-info .address {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.contact-info .address strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}
.contact-form-wrap {
    flex: 1;
    min-width: 0;
}

/* ── Contact Form ───────────────────────────────────────── */
.contact-form { max-width: 100%; margin: 0; }
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 15px;
    color: var(--text-secondary);
}
.required { color: var(--red); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #999;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green-accent);
    box-shadow: 0 0 0 3px rgba(108, 183, 71, .15);
    outline: none;
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.zustimmung-datenschutz label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.zustimmung-datenschutz input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--green-accent);
}

/* Pflichtfeld-Hinweis */
.form-required-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Radio-Button Cards */
.radio-group {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}
.radio-group legend {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}
.radio-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.radio-card {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
    margin-bottom: 0;
}
.radio-card:hover {
    border-color: var(--green-border);
    background-color: var(--green-bg);
}
.radio-card input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--green-accent);
    margin: 0;
}
.radio-card:has(input:checked) {
    border-color: var(--green-accent);
    background-color: var(--green-bg);
    box-shadow: 0 0 0 1px var(--green-accent);
}
.radio-card-label {
    white-space: nowrap;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Feedback / Erfolgsmeldung */
.form-feedback {
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    border-radius: var(--radius);
    display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success {
    padding: 32px 28px;
    margin-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, #edf7ed 0%, #f4faf2 100%);
    color: #1a5c1a;
    border: 2px solid var(--green-border);
    border-radius: 10px;
}
.form-feedback.success::before {
    content: "\2713";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green-accent);
    color: #fff;
    font-size: 30px;
    line-height: 56px;
    border-radius: 50%;
    font-weight: 700;
}
.form-feedback .feedback-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #1a5c1a;
    margin-bottom: 8px;
}
.form-feedback .feedback-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 44ch;
    margin: 0 auto;
}
.contact-form.is-hidden { display: none; }

/* Inline-Fehlermeldungen (im Formular) */
.form-errors {
    display: none;
}
.form-errors.show {
    display: block;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #fef0f0;
    color: var(--red);
    border: 1px solid #e8a0a0;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.6;
}
.form-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.form-errors ul li {
    padding: 0;
    margin: 0 0 2px;
}
.form-errors ul li::before {
    display: none;
}

.contact-form button[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
    margin: 0;
    padding: 32px 0;
    background-color: rgba(160, 210, 135, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
footer, footer a, footer a:hover { color: var(--text); }
footer a { text-decoration: none; font-weight: 400; }
footer strong a { font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
footer .footer-info { line-height: 1.65; font-size: 15px; }
footer .footer_menu ul { list-style-type: none; padding: 0; margin: 0; }
footer .footer_menu ul li { display: inline-block; }
footer .footer_menu ul li::before { display: none; }
footer .footer_menu ul li a {
    display: block;
    padding: 4px 20px 4px 0;
    font-size: 15px;
    text-decoration: none;
    transition: color var(--transition);
}
footer .footer_menu ul li a:hover { color: var(--teal); text-decoration: none; }
footer .footer-copy { margin-top: 18px; font-size: 13px; color: var(--text-secondary); }

/* ── Subpages (Datenschutz, Impressum) ──────────────────── */
.page-content { padding: 30px 0; }
.page-content p { max-width: 72ch; }
.page-content h2 { margin-top: 32px; }
.page-content h3 { font-size: 20px; line-height: 1.3; margin-top: 24px; }
.page-content h4 { font-size: 18px; line-height: 1.35; }
.page-content ul { margin-bottom: 16px; }
.page-content .back-link {
    margin-bottom: 24px;
    display: inline-block;
    font-size: 15px;
    color: var(--text-secondary);
}
.page-content .back-link:hover { color: var(--link); }

/* ── Responsive ─────────────────────────────────────────── */
@media all and (max-width: 1250px) {
    .innerwrap, header nav { width: 94%; }
}

@media all and (max-width: 890px) {
    header .menuwrap, header nav, header .logo img { position: static; top: auto; }
    header .menuwrap { top: 0; }
    header nav ul { margin-left: 0; }

    .therapy-grid { flex-direction: column; gap: 20px; }

    .contact-grid { flex-direction: column; gap: 28px; }
    .contact-info { flex: none; width: 100%; }

    #main .innerwrap { padding: 30px 28px; }
}

@media all and (max-width: 680px) {
    body { font-size: 16px; }

    h1, .section#hero h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }

    header .menuwrap a.mobile { display: block; visibility: visible; }
    header nav ul {
        display: none;
        margin: 0;
    }
    header .menuwrap.open nav ul { display: block; }
    header nav ul li { float: none; }
    header nav ul li a { padding: 12px 18px; margin: 0; font-size: 17px; }

    #main .innerwrap { padding: 24px 18px; }
    .section { padding: 32px 0 28px; }

    .contact-form { max-width: 100%; }
    .radio-options { flex-direction: column; }
    .radio-card { min-width: 100%; }

    footer .footer-content { flex-direction: column; }
    footer { padding: 24px 0; }
}
