@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #0754a2;
    --blue2: #087ed0;
    --cyan: #36b9e9;
    --orange: #f49a24;
    --ink: #102b49;
    --muted: #62748a;
    --pale: #f2f8fd;
    --line: #dce9f4;
    --white: #fff;
    --shadow: 0 12px 32px rgba(7,57,105,.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* TOPBAR */

.topbar {
    background: #f4f8fc;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    color: #244b72;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.topbar a:hover,
.main-nav a:hover {
    color: var(--orange);
}

/* HEADER UND NAVIGATION */

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 25px;
}

.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 3px 18px rgba(10,47,83,.12);
}

.brand {
    width: 142px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.brand-mark {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--blue);
    line-height: 1;
}

.brand-mark span {
    color: var(--cyan);
}

.brand small {
    font-size: .58rem;
    letter-spacing: 2px;
    color: var(--orange);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.1vw, 30px);
    font-size: .91rem;
    font-weight: 700;
}

.main-nav > a {
    padding: 12px 0;
}

.main-nav .active {
    color: var(--blue);
    border-bottom: 3px solid var(--orange);
}

.main-nav .nav-cta {
    padding: 12px 18px;
    background: var(--orange);
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 6px 15px rgba(244,154,36,.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--blue);
    margin: 5px;
}

/* HERO */

.hero {
    min-height: 570px;
    position: relative;
    overflow: hidden;
    background: #062d56;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0 18% 0 0;
    background-image:
        linear-gradient(90deg, rgba(3,24,47,.91), rgba(3,31,59,.52), rgba(3,31,59,.08)),
        url('../assets/images/practice_1.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-shade {
    position: absolute;
    inset: 0 17% 0 0;
    background: linear-gradient(90deg, rgba(2,23,44,.4), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 70px;
    padding-bottom: 70px;
    width: min(1180px, calc(100% - 40px));
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .75rem;
    font-weight: 800;
    color: #c8eaff;
    margin: 0 0 12px;
}

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

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -2px;
    max-width: 610px;
    margin-bottom: 18px;
}

h1 span,
h2 span {
    color: var(--cyan);
}

.hero-lead {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-copy {
    max-width: 520px;
    color: #e4edf7;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 26px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 19px;
    border-radius: 7px;
    font-weight: 800;
    font-size: .9rem;
    transition: .2s;
    border: 1px solid transparent;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.button-orange {
    background: var(--orange);
    color: #fff;
}

.button-blue {
    background: var(--blue2);
    color: #fff;
}

.button-outline {
    border-color: rgba(255,255,255,.8);
    color: #fff;
}

.button-light {
    border-color: #b7d8f3;
    color: var(--blue);
    background: #fff;
}

.trust-points {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: .83rem;
    color: #e8f5ff;
}

.hero-brand-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 25%;
    background: linear-gradient(145deg, #f5fbff, #dff3ff);
    clip-path: polygon(23% 0, 100% 0, 100% 100%, 0 100%, 10% 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px 30px 45px;
}

.hero-brand-inner {
    text-align: center;
    color: var(--blue);
    max-width: 250px;
}

.hero-brand-inner img {
    max-height: 170px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.hero-brand-inner h2 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.hero-brand-inner p {
    color: #456b8d;
    font-size: .9rem;
}

/* ALLGEMEINE ABSCHNITTE */

.section {
    padding: 78px 0;
}

.section-soft {
    background: var(--pale);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 28px;
}

.section-heading h2,
.about-copy h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.section-heading .button {
    white-space: nowrap;
}

/* LEISTUNGEN – NEUES DESIGN */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.service-card {
    min-height: 270px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue2);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(8, 60, 110, 0.045);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #b8d9f2;
    border-top-color: var(--orange);
    box-shadow: 0 14px 30px rgba(7, 84, 162, 0.12);
}

.service-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 12px;
    background: #e8f6ff;
    color: var(--blue2);
    font-size: 1.45rem;
}

.service-card h3 {
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 1.08rem;
    line-height: 1.35;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 17px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.service-card .text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--blue2);
    font-weight: 800;
    font-size: 0.88rem;
}

.service-card .text-link:hover {
    color: var(--orange);
}

/* BILDERGALERIE */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.photo-tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 190px;
    background: #dceaf5;
}

.photo-tile img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s;
}

.photo-tile:hover img {
    transform: scale(1.05);
}

.photo-tile span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 13px 12px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(transparent, rgba(3,28,54,.85));
}

/* STATISTIK */

.stats-band {
    background: linear-gradient(100deg, #06417e, #0877bd);
    color: #fff;
    padding: 26px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stats-grid div {
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid rgba(255,255,255,.2);
    padding-left: 20px;
}

.stats-grid div:last-child {
    border: 0;
}

.stats-grid strong {
    font-size: 1.45rem;
}

.stats-grid span {
    font-size: .82rem;
    color: #d8ecff;
}

/* ÜBER UNS */

.about-preview {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 60px;
    align-items: center;
}

.about-copy p {
    color: var(--muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px;
}

.check-list li {
    padding: 7px 0 7px 28px;
    position: relative;
}

.check-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue2);
    font-weight: 900;
}

.about-visual {
    position: relative;
    min-height: 340px;
    background: #e7f5ff;
    border-radius: 25px 90px 25px 25px;
    overflow: hidden;
}

.about-photo {
    position: absolute;
    inset: 0 18% 0 0;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-note {
    position: absolute;
    right: 0;
    bottom: 25px;
    background: var(--blue);
    color: #fff;
    padding: 20px;
    border-radius: 12px 0 0 12px;
    display: grid;
    gap: 4px;
}

.about-note strong {
    font-size: 1.4rem;
}

.about-note span {
    font-size: .78rem;
}

/* CALL TO ACTION */

.cta-section {
    background: #eef7fd;
    padding: 48px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cta-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.cta-inner p {
    color: var(--muted);
    margin: 0;
}

/* UNTERSEITEN */

.page-hero {
    background: linear-gradient(110deg, #06366a, #087cc0);
    color: #fff;
    padding: 72px 0;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    margin-bottom: 10px;
}

.page-hero p {
    color: #d8edff;
    max-width: 700px;
    margin: 0;
}

.content-section {
    padding: 58px 0;
}

.content-section h2 {
    font-size: 1.8rem;
}

.content-section p {
    color: var(--muted);
}

.service-detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.detail-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.detail-card h2 {
    font-size: 1.2rem;
    color: var(--blue);
}

/* REFERENZEN */

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

.gallery-grid figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 14px;
    font-weight: 800;
}

/* KONTAKT UND FORMULARE */

.contact-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
}

.contact-card,
.form-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
    border: 0;
}

.contact-item strong {
    display: block;
    color: var(--blue);
    margin-bottom: 3px;
}

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

.hours td {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.hours td:last-child {
    text-align: right;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
    font-size: .87rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #cbdbea;
    border-radius: 7px;
    padding: 12px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-note {
    font-size: .78rem;
    color: var(--muted);
}

.map-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue2);
    font-weight: 800;
}

/* FOOTER */

.site-footer {
    background: #062b51;
    color: #e5f2ff;
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-grid h3 {
    font-size: 1rem;
    color: #fff;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: #c3d9eb;
    font-size: .86rem;
    margin-bottom: 8px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
}

.footer-brand span {
    display: block;
    font-size: .65rem;
    letter-spacing: 2px;
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 16px 0;
    font-size: .78rem;
    color: #abc6dc;
}

/* TABLET UND KLEINERE BILDSCHIRME */

@media (max-width: 980px) {

    .topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 18px;
        padding: 7px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 24px 25px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a {
        padding: 10px;
    }

    .main-nav .active {
        border: 0;
        background: var(--pale);
    }

    .hero-brand-panel {
        display: none;
    }

    .hero-image {
        inset: 0;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .service-card {
        min-height: 250px;
        padding: 22px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* SMARTPHONE */

@media (max-width: 640px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    .topbar-inner span {
        display: none;
    }

    .topbar-inner {
        font-size: .7rem;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        max-height: 58px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-content {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    h1 {
        font-size: 2.65rem;
    }

    .hero-copy {
        font-size: .95rem;
    }

    .trust-points {
        gap: 9px 16px;
        font-size: .75rem;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
        max-width: 330px;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading .button {
        width: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        min-height: 0;
        padding: 21px;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

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

    .photo-tile img {
        height: 170px;
    }

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

    .stats-grid div {
        padding: 8px;
        border: 0;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-visual {
        min-height: 260px;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-inner .button {
        width: auto;
    }

    .service-detail-list,
    .gallery-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 230px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .page-hero {
        padding: 55px 0;
    }

    .content-section {
        padding: 42px 0;
    }
}