/* ==========================================================
   Senmotic Weimar – gemeinsames Stylesheet für alle Seiten
   Farben orientieren sich am Senmotic-Logo (Petrol/Türkis).
   Keine externen Schriften (DSGVO): es werden Systemschriften genutzt.
   ========================================================== */

:root {
    --teal: #2fa58b;          /* Logo-Türkis, für Flächen und Akzente */
    --teal-dark: #1c7563;     /* Buttons/Links, ausreichend Kontrast zu Weiß */
    --teal-darker: #145a4c;   /* Hover */
    --teal-light: #e8f5f1;    /* helle Hintergründe */
    --ink: #1f2b2d;           /* Fließtext */
    --muted: #5a6769;
    --bg: #ffffff;
    --bg-alt: #f5f7f6;
    --line: #dde5e3;
    --radius: 10px;
    --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--teal-dark); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-top: .6rem; padding-bottom: .6rem;
}
.logo img { height: 48px; width: auto; }

.main-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; }
.main-nav a {
    display: block; padding: .6rem .9rem; border-radius: 6px;
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--teal-light); color: var(--teal-darker); }
.main-nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* Mobiles Menü ohne JavaScript (details/summary) */
.nav-toggle { display: none; }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav-toggle summary {
        list-style: none; cursor: pointer;
        padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 6px;
        font-weight: 600; min-height: 44px;
    }
    .nav-toggle summary::-webkit-details-marker { display: none; }
    .nav-toggle[open] .main-nav { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 16px rgba(0,0,0,.06);
    }
    .main-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
    .main-nav a { padding: .8rem 1rem; }
    .nav-desktop { display: none; }
}
@media (min-width: 961px) {
    .nav-toggle { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    background: var(--ink) center / cover no-repeat;
    min-height: 70vh; display: flex; align-items: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,40,38,.82) 0%, rgba(20,40,38,.55) 55%, rgba(20,40,38,.2) 100%);
}
.hero .container { position: relative; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1, .hero p { color: #fff; max-width: 640px; }
.hero .lead { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
/* Startseite: Anne steht links im Foto, daher Text rechts und Abdunklung von rechts */
.hero-home {
    background-image: url("images/praxis-behandlung-anne.jpg");
    background-position: left center;
}
.hero-home::before {
    background: linear-gradient(270deg, rgba(20,40,38,.88) 0%, rgba(20,40,38,.7) 38%, rgba(20,40,38,.1) 62%, rgba(20,40,38,0) 100%);
}
.hero-home .hero-text { max-width: 470px; margin-left: auto; }
.hero-home h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.hero-home .lead { font-size: 1.1rem; }

@media (max-width: 860px) {
    /* Handy: Foto oben im Ganzen zeigen, Text darunter auf dunklem Grund */
    .hero-home {
        display: block; min-height: 0;
        background-image: none; background-color: #1f3a36;
    }
    .hero-home::before { display: none; }
    .hero-home .hero-photo {
        display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 70vh;
        object-fit: cover; object-position: center 30%;
    }
    .hero-home .container { padding-top: 2rem; padding-bottom: 2.5rem; }
    .hero-home .hero-text { max-width: none; margin-left: 0; }
}
@media (min-width: 861px) {
    .hero-home .hero-photo { display: none; }
}
.hero-defence { background-image: url("images/senmotic-defence.jpg"); min-height: 50vh; }

.page-hero { background: var(--teal-light); padding: 3.5rem 0 3rem; }
.page-hero .lead { max-width: 720px; }

.check-list { list-style: none; margin: 1rem 0 1.5rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .4rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 1rem; height: .55rem;
    border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal);
    transform: rotate(-45deg);
}
.hero .check-list li::before { border-color: #7fe0c9; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; min-height: 48px;
    padding: .8rem 1.6rem; border-radius: 6px; border: 2px solid var(--teal-dark);
    background: var(--teal-dark); color: #fff; font-weight: 600; font-size: 1.05rem;
    text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--teal-darker); border-color: var(--teal-darker); color: #fff; }
.btn-outline { background: transparent; color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal-light); color: var(--teal-darker); }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Layout-Bausteine ---------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img, .figure img { border-radius: var(--radius); }
@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse > :first-child { order: 0; }
}

.cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
    margin-top: 2rem;
}
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem;
}
.card .icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--teal-light); color: var(--teal-dark);
    display: grid; place-items: center; font-weight: 700; margin-bottom: .75rem;
}

.steps { counter-reset: step; list-style: none; margin-top: 1.5rem; }
.steps li { position: relative; padding-left: 3.5rem; margin-bottom: 1.75rem; }
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--teal); color: #fff; font-weight: 700;
    display: grid; place-items: center;
}

.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.notice {
    border-left: 4px solid var(--teal); background: var(--teal-light);
    padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.5rem;
}

/* ---------- Bewertungen ---------- */
.rating { text-align: center; }
.stars { font-size: 1.8rem; color: #e9a800; letter-spacing: .15rem; }
.rating-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }

/* ---------- FAQ ---------- */
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.25rem; margin-bottom: .75rem; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: .5rem; }

/* ---------- Aktuelles ---------- */
.news-item {
    border: 1px solid var(--line); border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; background: #fff;
}
.news-item h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.news-meta { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.news-tag {
    display: inline-block; background: var(--teal-light); color: var(--teal-darker);
    font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
    padding: .15rem .55rem; border-radius: 999px;
}
.news-card .news-meta { margin-bottom: .5rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--teal-dark); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn { background: #fff; color: var(--teal-darker); border-color: #fff; }
.cta-band .btn:hover { background: var(--teal-light); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.info-box { margin-bottom: 1.75rem; }
.info-box a { font-weight: 600; }

.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: .8rem; margin-bottom: 1.1rem;
    border: 1px solid #b9c6c3; border-radius: 6px;
    font: inherit; color: inherit; background: #fff;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 3px solid rgba(47,165,139,.35); border-color: var(--teal); }
.contact-form .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact-form .consent input { width: auto; margin-top: .35rem; }
.hp-field { position: absolute; left: -9999px; } /* Spam-Schutz */

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { margin-top: 1.25rem; }
.legal ul { margin: .5rem 0 0 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2b2d; color: #d7dfdd; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
