/* ==========================================================================
   Kieferorthopädie Speyer-West – Webvisitenkarte
   Navy #1D3054 · Orange #D94D15 · Hellblau #DDEBF3 / #B5CDE0 · Elfenbein #FDF8F3
   ========================================================================== */


/* 1. Schriften (lokal) ---------------------------------------------------- */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/PlusJakartaSans-latin.woff2") format("woff2");
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/SourceSans3-latin.woff2") format("woff2");
}


/* 2. Grundlagen ----------------------------------------------------------- */

:root {
    --navy: #1D3054;
    --navy-2: #2D4A7A;
    --orange: #D94D15;
    --blue: #DDEBF3;
    --blue-2: #B5CDE0;
    --ivory: #FDF8F3;
    --white: #FFFFFF;
    --text: #3A4865;
    --muted: #4D5B78;
    --line: rgba(29, 48, 84, 0.12);
    --radius: 28px;
    --container: 1180px;
    --gutter: 16px;
    --head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --body: 'Source Sans 3', system-ui, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: var(--navy);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--head);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    margin: 0;
}

svg {
    display: block;
    flex: none;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--navy);
    font-family: var(--head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hl {
    position: relative;
    z-index: 0;
    white-space: nowrap;
}

.hl::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0.04em;
    z-index: -1;
    height: 0.32em;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(217, 77, 21, 0) 0%, rgba(217, 77, 21, 0.28) 15%, rgba(217, 77, 21, 0.28) 85%, rgba(217, 77, 21, 0) 100%);
}

.soft {
    display: block;
    color: var(--blue-2);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 99px;
    background: var(--white);
}


/* 3. Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--navy);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--navy-2);
}

.btn--outline {
    border-color: var(--navy);
    color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--light {
    background: var(--blue);
    color: var(--navy);
}

.btn--light:hover {
    background: var(--white);
}

.btn--small {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 15px;
}

.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}


/* 4. Header --------------------------------------------------------------- */

.header {
    position: relative;
    z-index: 3;
    padding: 18px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
}


/* 5. Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 40px 0 72px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    animation: drift 18s ease-in-out infinite alternate;
}

.hero::before {
    top: -200px;
    right: -220px;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(181, 205, 224, 0.95) 0%, rgba(221, 235, 243, 0) 70%);
}

.hero::after {
    left: -160px;
    bottom: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(181, 205, 224, 0.75) 0%, rgba(221, 235, 243, 0) 70%);
    animation-delay: -6s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(40px, -30px, 0) scale(1.12);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(40px, 7.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.hero__lead {
    max-width: 620px;
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.55;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-family: var(--head);
    font-size: 16px;
    font-weight: 700;
}

.checks svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
}

.badge {
    position: relative;
    display: flex;
    margin: -8px 4px 8px auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-family: var(--head);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 20px 40px -16px rgba(217, 77, 21, 0.7);
    transform: rotate(-10deg);
}

.badge small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}


/* 6. Leistungen ----------------------------------------------------------- */

.section {
    padding: 72px 0;
}

.section--white {
    background: var(--white);
}

.section--inset {
    padding: 16px 0 0;
}

.section__head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section__head h2 {
    font-size: clamp(32px, 5vw, 48px);
}

.section__head p {
    margin-top: 16px;
}

.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service {
    display: flex;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--ivory);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -30px rgba(29, 48, 84, 0.3);
}

.icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--blue);
    color: var(--navy);
}

.icon svg {
    width: 30px;
    height: 30px;
}

.service h3 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.25;
}

.service p {
    font-size: 17px;
    line-height: 1.5;
}

.note {
    margin-top: 28px;
    padding-left: 14px;
    border-left: 3px solid var(--orange);
    color: var(--navy);
    font-size: 17px;
}


/* 7. Kontakt -------------------------------------------------------------- */

.contact {
    margin: 0 8px;
    padding: 72px 0;
    border-radius: 32px;
    background: radial-gradient(110% 70% at 0% 0%, var(--navy-2) 0%, rgba(45, 74, 122, 0) 60%), var(--navy);
    color: rgba(221, 235, 243, 0.86);
}

.contact .eyebrow {
    color: var(--blue-2);
}

.contact h2 {
    color: var(--white);
    font-size: clamp(32px, 5vw, 48px);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.channels {
    display: grid;
    gap: 10px;
    margin: 0 0 0 -14px;
    padding: 0;
    list-style: none;
}

.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

a.channel:hover {
    background: rgba(221, 235, 243, 0.08);
}

.channel .icon {
    display: grid;
    flex: none;
    background: rgba(221, 235, 243, 0.12);
    color: var(--blue);
    transition: background 0.2s ease, color 0.2s ease;
}

a.channel:hover .icon {
    background: var(--blue);
    color: var(--navy);
}

.channel small {
    display: block;
    color: var(--blue-2);
    font-family: var(--head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.channel strong {
    display: block;
    color: var(--white);
    font-family: var(--head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.channel span {
    display: block;
    font-size: 16px;
}

.hours {
    padding: 28px;
    border: 1px solid rgba(221, 235, 243, 0.2);
    border-radius: var(--radius);
    background: rgba(221, 235, 243, 0.06);
}

.hours h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 22px;
}

.hours h3 svg {
    width: 26px;
    height: 26px;
    color: var(--blue-2);
}

.hours table {
    width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td {
    padding: 9px 0;
    border-bottom: 1px solid rgba(221, 235, 243, 0.12);
    font-size: 17px;
    font-weight: 400;
    text-align: left;
}

.hours tr:last-child th,
.hours tr:last-child td {
    border-bottom: 0;
}

.hours td {
    color: var(--white);
    text-align: right;
}

.hours .closed td {
    color: rgba(221, 235, 243, 0.5);
}

.hours .sat th,
.hours .sat td {
    color: var(--white);
    font-weight: 600;
}

.hours .btn {
    width: 100%;
    margin-top: 24px;
}


/* 8. Footer --------------------------------------------------------------- */

.footer {
    padding: 36px 0 44px;
    color: var(--muted);
    font-size: 16px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    color: var(--orange);
}


/* 9. Rechtstexte ---------------------------------------------------------- */

.legal {
    padding: 32px 0 72px;
}

.legal .container {
    max-width: calc(780px + 2 * var(--gutter));
}

.legal h1 {
    margin-bottom: 32px;
    font-size: clamp(36px, 6vw, 56px);
}

.legal h2 {
    margin: 36px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.legal p + p,
.legal ul {
    margin-top: 12px;
}

.legal ul {
    padding-left: 22px;
}

.legal .back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-family: var(--head);
    font-weight: 700;
    text-decoration: none;
}

.legal .back svg {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
}

.ph {
    color: var(--orange);
}


/* 10. Bewegung reduzieren ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* 11. Breakpoints --------------------------------------------------------- */

@media (min-width: 640px) {
    :root {
        --gutter: 30px;
    }

    .logo img {
        width: 184px;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        margin: 0 16px;
        border-radius: 48px;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 960px) {
    :root {
        --gutter: 40px;
    }

    .hero {
        padding: 64px 0 112px;
    }

    .badge {
        position: absolute;
        top: 10px;
        right: var(--gutter);
        margin: 0;
        width: 150px;
        font-size: 18px;
    }

    .badge small {
        font-size: 15px;
    }

    .section,
    .contact {
        padding: 104px 0;
    }

    .section--inset {
        padding: 24px 0 0;
    }

    .services {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .service {
        flex-direction: column;
        padding: 30px;
    }

    .contact {
        margin: 0 24px;
        border-radius: 64px;
    }

    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        align-items: start;
    }
}
