/* =========================================================
   GRATIA WEBSITE
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. ROOT / GENERAL
   ========================================================= */

:root {
    --primary: #74110f;
    --primary-dark: #520b09;
    --primary-light: #941f1c;

    --gold: #c59a45;
    --gold-light: #e2c477;

    --cream: #f8f5ef;
    --cream-dark: #eee8dc;

    --white: #ffffff;
    --black: #171717;

    --text: #3d3d3d;
    --text-light: #707070;

    --border: #e6e0d6;

    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container: 1180px;

    --transition: 0.3s ease;
}


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


html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}


body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--white);
    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;
}


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


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


button {
    font: inherit;
}


.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


.section-padding {
    padding: 100px 0;
}


/* =========================================================
   2. SOCIAL TOP BAR
   ========================================================= */

.social-bar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 42px;

    background: var(--primary-dark);
    color: var(--white);

    z-index: 1100;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


.social-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}


.social-bar-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.social-bar-left {
    font-size: 12px;
    letter-spacing: 0.5px;

    opacity: 0.85;
}


.social-links {
    display: flex;
    align-items: center;
    gap: 7px;
}


.social-link {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    transition:
        background var(--transition),
        transform var(--transition);
}


.social-link svg {
    width: 15px;
    height: 15px;

    fill: currentColor;
    stroke: none;
}


/* Instagram SVG */

.social-link:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}


.social-link:hover {
    background: var(--gold);
    transform: translateY(-2px);
}


/* =========================================================
   3. HEADER
   ========================================================= */
.site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: 92px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;


    transition:
        top 0.35s ease,
        box-shadow var(--transition);
}


.site-header.social-hidden {
    top: 0;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo-link {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}


.site-logo {
    width: 205px;
    height: 72px;

    object-fit: contain;
    object-position: left center;

    display: block;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}


.nav-link {
    position: relative;

    padding: 10px 14px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    transition: color var(--transition);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 3px;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}


.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* Mobile menu button */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}


.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--primary);

    transition: transform var(--transition);
}


/* =========================================================
   4. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 500px;

    margin-top: 130px;

    display: flex;
    align-items: center;

    background-image:
        url("images/hero.png");

    background-size: cover;
    background-position: center;

    color: var(--white);
}


.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(45, 5, 4, 0.82) 0%,
            rgba(74, 10, 8, 0.65) 42%,
            rgba(74, 10, 8, 0.20) 100%
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    transform: translateY(-45px);
}


.hero-text {
    width: min(680px, 100%);

    padding: 60px 0;
}


.hero-eyebrow,
.section-kicker {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--gold);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.hero h1 {
    margin-bottom: 25px;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.08;

    font-weight: 700;
}


.hero h1 span {
    display: block;

    color: var(--gold-light);
}


.hero-text > p {
    max-width: 600px;

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 18px;
    line-height: 1.8;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 27px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


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


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

    border: 1px solid var(--primary);

    box-shadow: 0 8px 20px rgba(116, 17, 15, 0.18);
}


.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


.btn-outline {
    background: transparent;
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.7);
}


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


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

    border: 1px solid var(--white);
}


.btn-light:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}


/* =========================================================
   6. SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 700px;

    margin-bottom:0px;
}


.section-heading.center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.section-heading h3 {
    margin-bottom: 10px;

    color: var(--primary);

    font-size: clamp(28px, 4vw, 38px);

    line-height: 1.2;
}


.section-heading p {
    color: var(--text-light);

    font-size: 16px;
}


/* =========================================================
   7. INTRO / VALUES
   ========================================================= */

.intro-section {
    background: var(--cream);
}


.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}


.value-card {
    padding: 32px 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    text-align: center;
    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.value-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-md);
}


.value-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(197, 154, 69, 0.13);

    color: var(--gold);

    font-size: 25px;
}


.value-card h3 {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 21px;
}


.value-card p {
    color: var(--text-light);

    font-size: 15px;
}


/* =========================================================
   8. ABOUT
   ========================================================= */

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


.two-column {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 75px;

    align-items: center;
}


.about-image {
    position: relative;
}


.about-image > img {
    width: 100%;
    height: 560px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.image-badge {
    position: absolute;

    right: -20px;
    bottom: 30px;

    padding: 18px 25px;

    background: var(--primary);

    color: var(--white);

    border-radius: var(--radius-sm);

    box-shadow: var(--shadow-md);
}


.image-badge strong {
    display: block;

    color: var(--gold-light);

    font-size: 19px;
}


.image-badge span {
    display: block;

    font-size: 12px;

    opacity: 0.9;
}


.about-content h2,
.sonnenblume-content h2,
.intensive-content h2 {
    margin-bottom: 22px;

    color: var(--primary);

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.2;
}


.about-content p,
.sonnenblume-content p,
.intensive-content p {
    margin-bottom: 17px;

    color: var(--text-light);

    font-size: 16px;
}


.text-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--primary);

    font-weight: 700;

    transition: color var(--transition);
}


.text-link:hover {
    color: var(--gold);
}

/* =========================================================
   9. SERVICES
   ========================================================= */

.services-section {
    background: var(--cream);
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}


.service-card {
    position: relative;
    min-height: 220px;
    padding: 32px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--gold);

    transform: scaleY(0);
    transform-origin: bottom;

    transition: transform var(--transition);
}


.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(197, 154, 69, 0.45);

    box-shadow: var(--shadow-md);
}


.service-card:hover::before {
    transform: scaleY(1);
}


.service-number {
    margin-bottom: 17px;

    color: var(--gold);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;
}


.service-card h3 {
    margin-top: 0;
    margin-bottom: 16px;

    color: var(--primary);
    font-size: 20px;
    line-height: 1.5;
}

.service-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}


.service-card.featured {
    background: var(--primary);
}


.service-card.featured h3,
.service-card.featured p {
    color: var(--white);
}


.service-card.featured p {
    opacity: 0.88;
}


@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 26px;
    }

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

/* =========================================================
   10. HAUS SONNENBLUME
   ========================================================= */

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


.sonnenblume-content {
    order: 1;
}


.sonnenblume-images {
    position: relative;

    min-height: 570px;

    order: 2;
}


.main-image {
    width: 85%;

    margin-left: auto;
}


.main-image img {
    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.secondary-image {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 48%;

    border: 8px solid var(--white);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);
}


.secondary-image img {
    width: 100%;
    height: 240px;

    object-fit: cover;

    border-radius: 8px;
}


.feature-list {
    margin: 25px 0 30px;
}


.feature-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 12px;
}


.feature-item > span {
    flex-shrink: 0;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2px;

    border-radius: 50%;

    background: rgba(197, 154, 69, 0.14);

    color: var(--gold);

    font-size: 13px;
    font-weight: 800;
}


.feature-item p {
    margin: 0;

    color: var(--text);
}


/* =========================================================
   11. INTENSIVE CARE
   ========================================================= */

.intensive-section {
    background: var(--cream);
}


.intensive-image img {
    width: 100%;
    height: 550px;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.quote-box {
    position: relative;

    margin-top: 30px;

    padding: 25px 30px 25px 50px;

    background: var(--white);

    border-left: 4px solid var(--gold);

    border-radius:
        0
        var(--radius-md)
        var(--radius-md)
        0;

    box-shadow: var(--shadow-sm);
}


.quote-mark {
    position: absolute;

    top: 8px;
    left: 15px;

    color: var(--gold);

    font-family: Georgia, serif;

    font-size: 50px;

    line-height: 1;
}


.quote-box p {
    margin: 0;

    color: var(--primary);

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   12. TEAM
   ========================================================= */

/* ==========================================
   TEAM SECTION – ABSTÄNDE UND LAYOUT
========================================== */

.team-section {
    background: var(--white);
    padding-top: 30px;
    padding-bottom: 70px;
}

.team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

.team-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.team-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.team-image img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-image:hover img {
    transform: scale(1.04);
}

.team-content {
    min-width: 0;
}

.team-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 30px;
    line-height: 1.4;
}

.team-content p {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* Tablet */
@media (max-width: 900px) {
    .team-section {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .team-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 700px;
    }

    .team-image img {
        height: 340px;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .team-section {
        padding-top: 35px;
        padding-bottom: 40px;
    }

    .team-layout {
        gap: 26px;
    }

    .team-images {
        gap: 12px;
    }

    .team-image img {
        height: 240px;
    }

    .team-content h3 {
        font-size: 25px;
        margin-bottom: 16px;
    }

    .team-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }
}


/* =========================================================
   13. CTA
   ========================================================= */

.cta-section {
    position: relative;

    padding: 75px 0;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--white);
}


.cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


.cta-content {
    max-width: 700px;
}


.cta-content .section-kicker {
    margin-bottom: 10px;
}


.cta-content h2 {
    margin-bottom: 12px;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;
}


.cta-content p {
    color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   14. CONTACT
   ========================================================= */

.contact-section {
    background: var(--cream);
}


.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.contact-card {
    padding: 35px 25px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    text-align: center;

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.contact-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}


.contact-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(116, 17, 15, 0.08);

    color: var(--primary);

    font-size: 22px;
}


.contact-card h3 {
    margin-bottom: 10px;

    color: var(--primary);

    font-size: 19px;
}


.contact-card p {
    color: var(--text);

    font-size: 14px;
}


.contact-card p a {
    color: var(--primary);

    font-weight: 600;
}


.contact-card p a:hover {
    color: var(--gold);
}


.contact-card > span {
    display: block;

    margin-top: 5px;

    color: var(--text-light);

    font-size: 12px;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-layout {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 45px;

    align-items: start;

    margin-top: 45px;
}


.contact-form-box {
    background: #ffffff;

    padding: 38px;

    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(80, 25, 45, 0.08);

    border: 1px solid rgba(110, 35, 60, 0.08);
}


.contact-form-box h3 {
    margin: 0 0 10px;

    color: var(--primary);

    font-size: 28px;
}


.form-intro {
    margin-bottom: 28px;

    color: #666;

    line-height: 1.7;
}


.contact-form {
    width: 100%;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #3f3f3f;

    font-size: 15px;
}


.form-group input,
.form-group textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 14px 15px;

    font-family: inherit;

    font-size: 15px;

    color: #333;

    background: #fff;

    outline: none;

    transition: 0.25s ease;
}


.form-group input {
    height: 50px;
}


.form-group textarea {
    min-height: 145px;

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(111, 32, 57, 0.08);
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}


.form-consent {
    margin: 5px 0 22px;
}


.form-consent label {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

    color: #666;

    font-size: 13px;

    line-height: 1.6;
}


.form-consent input {
    margin-top: 4px;

    accent-color: var(--primary);
}


.contact-submit-btn {
    width: 100%;

    border: none;

    border-radius: 10px;

    padding: 15px 22px;

    background: var(--primary);

    color: #fff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    transition: 0.25s ease;
}


.contact-submit-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


.contact-submit-btn:disabled {
    opacity: 0.7;

    cursor: wait;

    transform: none;
}


.form-result {
    display: none;

    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 8px;

    font-size: 14px;

    line-height: 1.5;
}


.form-result.success {
    display: block;

    background: #edf8f1;

    color: #267044;

    border: 1px solid #cdebd8;
}


.form-result.error {
    display: block;

    background: #fff1f1;

    color: #a12b2b;

    border: 1px solid #f0cccc;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.contact-card {
    display: flex;

    align-items: flex-start;

    gap: 18px;
}


.contact-card-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background: rgba(111, 32, 57, 0.08);

    color: var(--primary);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;
}


.contact-card h3 {
    margin: 0 0 6px;

    color: var(--primary);

    font-size: 18px;
}


.contact-card p {
    margin: 0;

    color: #555;

    line-height: 1.7;
}


.contact-card a {
    color: #555;

    text-decoration: none;

    transition: 0.2s ease;
}


.contact-card a:hover {
    color: var(--primary);
}


.contact-card small {
    display: block;

    margin-top: 5px;

    color: #888;

    line-height: 1.5;
}


/* =========================================================
   CONTACT FORM - RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .contact-info {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 20px;
    }

}


@media (max-width: 600px) {

    .contact-form-box {
        padding: 25px 20px;
    }


    .contact-form-box h3 {
        font-size: 24px;
    }


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

        gap: 0;
    }


    .contact-info {
        grid-template-columns: 1fr;
    }


    .contact-submit-btn {
        padding: 14px 18px;
    }

}


/* =========================================================
   GRATIA FOOTER - FINAL
   ========================================================= */

.footer {
    width: 100%;

    background: #681919!important;

    color: rgba(255, 255, 255, 0.78);

    overflow: hidden;
}


/* =========================================================
   FOOTER MAIN
   ========================================================= */

.footer-mobile-style {
    width: min(92%, 1200px);

    margin: 0 auto;

    display: grid !important;

    grid-template-columns: 1fr 1fr;

    column-gap: 100px;

    align-items: start;

    padding: 65px 0;

    box-sizing: border-box;
}


/* =========================================================
   FOOTER SECTIONS
   ========================================================= */

.footer-section {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;
}


.footer-section h3 {
    margin: 0 0 25px;

    color: #ffffff;

    font-size: 22px;

    font-weight: 700;
}


/* =========================================================
   CONTACT
   ========================================================= */

.footer-contact-new {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 17px;

    width: 100%;
}


.footer-address,
.footer-contact-link {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin: 0;

    padding: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 16px;

    line-height: 1.6;

    text-decoration: none;
}


.footer-contact-link {
    align-items: center;

    transition: color 0.25s ease;
}


.footer-contact-link:hover {
    color: #e4c276;
}


/* =========================================================
   CONTACT ICONS
   ========================================================= */

.footer-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;

    min-width: 22px;

    color: #e4c276;

    font-size: 17px;
}


/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.footer-social {
    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 14px;

    margin-top: 30px;
}


.footer-social a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 50%;

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.25s ease;
}


.footer-social a:hover {
    background: #e4c276;

    border-color: #e4c276;

    color: #260605;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    width: 100%;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    background: #260605;
}


.footer-bottom-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 20px 0;

    text-align: center;
}


.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   LEGAL LINKS
   ========================================================= */

.footer-legal {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;

    line-height: 1.7;
}


.footer-legal a {
    color: rgba(255, 255, 255, 0.72);

    text-decoration: none;

    transition: color 0.25s ease;
}


.footer-legal a:hover {
    color: #e4c276;
}


.footer-legal strong {
    color: rgba(255, 255, 255, 0.85);

    font-weight: 600;
}


/* =========================================================
   FOOTER MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .footer-mobile-style {
        width: calc(100% - 40px);

        grid-template-columns: 1fr;

        gap: 45px;

        padding: 55px 0;
    }


    .footer-section {
        width: 100%;
    }


    .footer-section h3 {
        font-size: 21px;

        margin-bottom: 22px;
    }


    .footer-navigation {
        gap: 14px;
    }


    .footer-navigation a {
        font-size: 16px;
    }


    .footer-address,
    .footer-contact-link {
        font-size: 15px;
    }


    .footer-social a {
        width: 46px;
        height: 46px;
    }


    .footer-bottom-content {
        padding: 20px 15px;
    }


    .footer-copyright {
        font-size: 12px;
    }


    .footer-legal {
        font-size: 12px;

        padding: 0 5px;
    }

}


/* =========================================================
   FOOTER SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .footer-mobile-style {
        width: calc(100% - 30px);

        gap: 40px;

        padding: 50px 0;
    }


    .footer-navigation a {
        font-size: 15px;
    }


    .footer-address,
    .footer-contact-link {
        font-size: 14px;
    }


    .footer-legal {
        line-height: 1.8;
    }

}

/* =========================================================
   GRATIA - FINAL RESPONSIVE SYSTEM
   Based on the current HTML structure
   Desktop design remains unchanged
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
}


img,
video,
iframe {
    max-width: 100%;
}


/* =========================================================
   LARGE LAPTOP
   1201px - 1399px
   ========================================================= */

@media (max-width: 1399px) and (min-width: 1101px) {

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


    .main-nav {
        gap: 2px;
    }


    .nav-link {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 13px;
    }


    .nav-link::after {
        left: 10px;
        right: 10px;
    }


    .site-logo {
        width: 190px;
    }


    .two-column {
        gap: 50px;
    }


    .team-layout {
        gap: 45px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
   851px - 1100px
   ========================================================= */

@media (max-width: 1100px) and (min-width: 851px) {

    .container {
        width: calc(100% - 40px);
    }


    .site-logo {
        width: 175px;
    }


    .main-nav {
        gap: 0;
    }


    .nav-link {
        padding: 9px 8px;

        font-size: 12px;
    }


    .nav-link::after {
        left: 8px;
        right: 8px;
    }


    .hero {
        min-height: 500px;
    }


    .hero-content {
        transform: translateY(-25px);
    }


    .hero h1 {
        font-size: clamp(40px, 5vw, 58px);
    }


    .two-column {
        gap: 40px;
    }


    .about-image > img {
        height: 480px;
    }


    .sonnenblume-images {
        min-height: 500px;
    }


    .main-image img {
        height: 440px;
    }


    .intensive-image img {
        height: 470px;
    }


    .team-layout {
        gap: 40px;
    }


    .team-image img {
        height: 360px;
    }


    .contact-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

}
/* =========================================================
   TABLET PORTRAIT
   761px - 850px
   ========================================================= */

@media (max-width: 850px) and (min-width: 761px) {

    .container {
        width: calc(100% - 36px);
    }
    .site-header {
        height: 78px;
    }
    .site-logo {
        width: 160px;
        height: 62px;
    }

    .hero {
        margin-top: 120px;

        min-height: 480px;
    }


    .hero-content {
        transform: translateY(-15px);
    }


    .hero h1 {
        font-size: 46px;
    }


    .hero-text > p {
        font-size: 15px;

        max-width: 550px;
    }


    .section-padding {
        padding: 80px 0;
    }


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


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


    .two-column {
        grid-template-columns: 1fr 1fr;

        gap: 30px;
    }


    .about-image > img {
        height: 430px;
    }


    .sonnenblume-images {
        min-height: 430px;
    }


    .main-image {
        width: 90%;
    }


    .main-image img {
        height: 390px;
    }


    .secondary-image {
        width: 50%;
    }


    .secondary-image img {
        height: 190px;
    }


    .intensive-image img {
        height: 400px;
    }


    .team-layout {
        grid-template-columns: 1.15fr 0.85fr;

        gap: 30px;
    }


    .team-images {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }


    .team-image img {
        height: 300px;
    }


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

}


/* =========================================================
   MOBILE
   561px - 760px
   ========================================================= */

@media (max-width: 760px) {

    /* ---------- General ---------- */

    .container {
        width: calc(100% - 30px);
    }


    .section-padding {
        padding: 70px 0;
    }


    /* ---------- Header ---------- */

    .site-header {
        top: 42px;
        height: 75px;
    }


    .site-header.social-hidden {
        top: 0;
    }


    .header-inner {
        min-height: 75px;
    }


    .site-logo {
        width: 155px;
        height: 58px;
    }


    .menu-toggle {
        display: flex;

        flex-shrink: 0;
    }


    .main-nav {
        position: absolute;

        top: 75px;

        left: 15px;
        right: 15px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: var(--white);

        border-radius: 0 0 14px 14px;

        box-shadow: var(--shadow-lg);

        z-index: 2000;
    }


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


    .nav-link {
        width: 100%;

        padding: 13px 15px;

        font-size: 14px;

        border-bottom: 1px solid var(--border);
    }


    .nav-link:last-child {
        border-bottom: none;
    }


    .nav-link::after {
        display: none;
    }


    /* ---------- Hero ---------- */

    .hero {
        margin-top: 117px;

        min-height: 560px;

        background-position: 62% center;
    }


    .hero-content {
        transform: translateY(-20px);
    }


    .hero-text {
        width: 100%;

        padding: 40px 0;
    }


    .hero h1 {
        font-size: clamp(38px, 9vw, 54px);

        line-height: 1.1;
    }


    .hero-text > p {
        font-size: 16px;

        line-height: 1.7;
    }


    .hero-buttons {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    /* ---------- Headings ---------- */

    .section-heading {
        margin-bottom: 40px;
    }


    .section-heading h2 {
        font-size: clamp(30px, 7vw, 40px);
    }


    .section-heading p {
        font-size: 15px;
    }


    /* ---------- Values ---------- */

    .value-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .value-card {
        padding: 30px 24px;
    }


    /* ---------- Main Columns ---------- */

    .two-column {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    /* ---------- About ---------- */

    .about-image > img {
        height: 400px;
    }


    .image-badge {
        right: 15px;
        bottom: 20px;
    }


    /* ---------- Sonnenblume ---------- */

    .sonnenblume-content {
        order: 1;
    }


    .sonnenblume-images {
        order: 2;

        min-height: 430px;
    }


    .main-image {
        width: 90%;
    }


    .main-image img {
        height: 380px;
    }


    .secondary-image {
        width: 52%;
    }


    .secondary-image img {
        height: 190px;
    }


    /* ---------- Services ---------- */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .service-card {
        min-height: auto;
    }


    /* ---------- Intensive ---------- */

    .intensive-image img {
        height: 400px;
    }


    /* =====================================================
       TEAM
       ===================================================== */

    .team-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .team-images {
        position: relative !important;

        width: 100% !important;

        height: 430px !important;
        min-height: 430px !important;

        display: block !important;

        padding: 0 !important;

        overflow: hidden !important;
    }


    /* Each team photo becomes one slide */

    .team-images .team-image {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100% !important;

        margin: 0 !important;

        opacity: 0 !important;
        visibility: hidden !important;

        z-index: 1 !important;

        border: 8px solid var(--white);

        border-radius: var(--radius-md);

        overflow: hidden;

        transition:
            opacity 0.5s ease,
            visibility 0.5s ease;
    }


    /* Active slide */

    .team-images .team-image.active {
        opacity: 1 !important;

        visibility: visible !important;

        z-index: 2 !important;
    }


    /* Team image */

    .team-images .team-image img {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;

        object-position: center center !important;

        background: var(--cream);
    }


    /* ---------- Slider Buttons ---------- */

    .team-slider-btn {
        position: absolute !important;

        top: 50% !important;

        width: 44px !important;
        height: 44px !important;

        display: flex !important;

        align-items: center;
        justify-content: center;

        padding: 0 !important;

        z-index: 20 !important;

        background: var(--primary) !important;

        color: var(--white) !important;

        border: 1px solid rgba(255, 255, 255, 0.7) !important;

        border-radius: 50% !important;

        font-size: 28px !important;

        line-height: 1;

        transform: translateY(-50%) !important;

        cursor: pointer;
    }


    .team-slider-prev {
        left: 12px !important;
    }


    .team-slider-next {
        right: 12px !important;
    }


    /* ---------- Slider Dots ---------- */

    .team-slider-dots {
        position: absolute !important;

        left: 50% !important;

        bottom: 14px !important;

        display: flex !important;

        gap: 7px !important;

        z-index: 20 !important;

        transform: translateX(-50%) !important;
    }


    .team-slider-dot {
        width: 9px !important;
        height: 9px !important;

        padding: 0 !important;

        border: 1px solid var(--white) !important;

        border-radius: 50% !important;

        background: rgba(116, 16, 12, 0.55) !important;

        cursor: pointer;
    }


    .team-slider-dot.active {
        width: 25px !important;

        border-radius: 10px !important;

        background: var(--primary) !important;
    }


    /* ---------- CTA ---------- */

    .cta-section {
        padding: 60px 0;
    }


    .cta-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }


    .cta-inner .btn {
        width: 100%;
    }


    /* ---------- Contact ---------- */

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-top: 0;
    }


    .contact-form-box {
        padding: 28px 22px;
    }


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

        gap: 0;
    }


    .contact-info {
        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* ---------- Footer ---------- */

    .footer-mobile-style {
        width: calc(100% - 30px) !important;

        grid-template-columns: 1fr !important;

        gap: 40px !important;

        padding: 55px 0 !important;
    }


    .footer-section {
        width: 100%;
    }


    .footer-section h3 {
        font-size: 20px !important;
    }


    .footer-navigation a {
        font-size: 15px !important;
    }


    .footer-address,
    .footer-contact-link {
        font-size: 15px !important;
    }


    .footer-social a {
        width: 44px;
        height: 44px;
    }


    .footer-bottom-content {
        padding: 20px 15px !important;
    }

}

/* =========================================================
   SMALL MOBILE
   431px - 560px
   ========================================================= */

@media (max-width: 560px) {

    .container {
        width: calc(100% - 24px);
    }


    .section-padding {
        padding: 60px 0;
    }


    .main-nav {
        top: 75px;

        left: 8px;
        right: 8px;
    }


    /* ---------- Hero ---------- */

    .hero {
        margin-top: 113px;

        min-height: 540px;
    }


    .hero-content {
        transform: translateY(-15px);
    }


    .hero h1 {
        font-size: clamp(34px, 10vw, 46px);
    }


    .hero-text > p {
        font-size: 15px;
    }


    /* ---------- Section Headings ---------- */

    .section-heading h2,
    .about-content h2,
    .sonnenblume-content h2,
    .intensive-content h2 {
        font-size: 30px;
    }


    /* ---------- About ---------- */

    .about-image > img {
        height: 350px;
    }


    /* ---------- Sonnenblume ---------- */

    .sonnenblume-images {
        min-height: 370px;
    }


    .main-image img {
        height: 320px;
    }


    .secondary-image {
        width: 57%;
    }


    .secondary-image img {
        height: 165px;
    }


    /* ---------- Intensive ---------- */

    .intensive-image img {
        height: 350px;
    }


    /* ---------- Team ---------- */

    .team-images {
        height: 400px !important;
        min-height: 400px !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   360px AND BELOW
   ========================================================= */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 20px);
    }


    .site-logo {
        width: 135px;
    }


    .hero {
        min-height: 520px;
    }


    .hero h1 {
        font-size: 32px;
    }


    .hero-text > p {
        font-size: 14px;
    }


    .team-images {
        height: 370px !important;
        min-height: 370px !important;
    }


    .team-slider-btn {
        width: 40px !important;
        height: 40px !important;

        font-size: 24px !important;
    }


    .team-slider-prev {
        left: 8px !important;
    }


    .team-slider-next {
        right: 8px !important;
    }

}


/* =========================================================
   TEAM SLIDER CONTROLS
   DESKTOP / TABLET
   ========================================================= */

@media (min-width: 761px) {

    .team-slider-btn,
    .team-slider-dots {
        display: none !important;
    }

}


/* =========================================================
   CONTACT HEADING SPACING
   ========================================================= */

#kontakt .section-heading {
    margin-bottom: 35px !important;
}


#kontakt .section-heading h2 {
    margin-bottom: 14px;
}


#kontakt .section-heading p {
    margin: 0;
}


#kontakt .contact-layout {
    margin-top: 0;
}


/* =========================================================
   CONTACT FORM BUTTON
   ========================================================= */

.contact-submit-btn {
    background: var(--primary) !important;

    color: #fff !important;
}


.contact-submit-btn:hover {
    background: var(--primary-dark) !important;

    color: #fff !important;
}


.contact-submit-btn:active {
    background: var(--primary-dark) !important;
}

/* =========================================================
   BACK TO TOP — GRATIA LUXURY STYLE
   ========================================================= */

.back-to-top {
    position: fixed !important;

    right: 28px !important;
    left: auto !important;

    bottom: 28px !important;
    top: auto !important;

    width: 46px !important;
    height: 46px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: 1px solid rgba(216, 178, 122, 0.65) !important;

    border-radius: 50% !important;

    background: var(--primary) !important;

    color: #f0d39b !important;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18) !important;

    z-index: 99999 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(10px) !important;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease,
        box-shadow 0.25s ease !important;
}


/* ظاهر شدن بعد از اسکرول */

.back-to-top.is-visible {
    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0) !important;
}


/* Hover */

.back-to-top:hover {
    background: var(--primary-dark) !important;

    color: #ffffff !important;

    transform: translateY(-4px) !important;

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.24) !important;
}


/* فلش */

.back-to-top .icon-svg {
    width: 18px !important;
    height: 18px !important;
}


/* موبایل */

@media (max-width: 600px) {

    .back-to-top {
        right: 16px !important;
        bottom: 18px !important;

        width: 42px !important;
        height: 42px !important;
    }

    .back-to-top .icon-svg {
        width: 16px !important;
        height: 16px !important;
    }

}


/* Preserve the existing content offset below the fixed social bar and header. */
.hero {
    margin-top: 116px !important;
}


/* =========================================================
   GRATIA - CONTACT FINAL
   FORMULAR UND KONTAKTKARTEN GLEICHE HÖHE
   ========================================================= */

/* CONTACT LAYOUT */
.contact-layout {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 45px !important;
    align-items: stretch !important;
    margin-top: 45px !important;
}


/* =========================================================
   KONTAKTFORMULAR
   ========================================================= */

.contact-form-box {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;

    background: #ffffff !important;
    padding: 38px !important;

    border-radius: 18px !important;

    box-shadow:
        0 12px 35px rgba(80, 25, 45, 0.08) !important;

    border: 1px solid rgba(110, 35, 60, 0.08) !important;
}


/* =========================================================
   KONTAKT-SPALTE
   4 KARTEN FÜLLEN DIE GESAMTE HÖHE
   ========================================================= */

.contact-info {
    width: 100% !important;
    height: 100% !important;

    display: grid !important;

    grid-template-columns: 1fr !important;

    grid-template-rows: repeat(4, 1fr) !important;

    gap: 18px !important;
}


/* =========================================================
   KONTAKTKARTEN
   ========================================================= */

.contact-info .contact-card {
    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;

    gap: 18px !important;

    margin: 0 !important;
    padding: 24px !important;

    background: #ffffff !important;

    border: 1px solid var(--border) !important;

    border-radius: 16px !important;

    text-align: left !important;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06) !important;
}


/* =========================================================
   ICON
   ========================================================= */

.contact-info .contact-card-icon {
    flex: 0 0 52px !important;

    width: 52px !important;
    height: 52px !important;

    margin: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border-radius: 14px !important;

    background: rgba(111, 32, 57, 0.08) !important;

    color: var(--primary) !important;

    font-size: 22px !important;
}


/* =========================================================
   TEXT-BEREICH
   ========================================================= */

.contact-info .contact-card > div:last-child {
    flex: 1 !important;
    min-width: 0 !important;
}


/* TITEL */
.contact-info .contact-card h3 {
    margin: 0 0 6px 0 !important;

    color: var(--primary) !important;

    font-size: 18px !important;

    line-height: 1.3 !important;

    text-align: left !important;
}


/* TEXT */
.contact-info .contact-card p {
    margin: 0 !important;

    color: #555 !important;

    font-size: 15px !important;

    line-height: 1.6 !important;

    text-align: left !important;

    overflow-wrap: anywhere !important;
}


/* LINKS */
.contact-info .contact-card a {
    color: #555 !important;

    text-decoration: none !important;

    font-weight: 500 !important;
}

.contact-info .contact-card a:hover {
    color: var(--primary) !important;
}


/* ZUSATZTEXT */
.contact-info .contact-card small {
    display: block !important;

    margin-top: 5px !important;

    color: #888 !important;

    font-size: 13px !important;

    line-height: 1.5 !important;
}


/* =========================================================
   ABSTAND ZUM FOOTER
   ========================================================= */

.contact-section {
    padding-bottom: 50px !important;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .contact-form-box {
        height: auto !important;
    }

    .contact-info {
        height: auto !important;

        display: grid !important;

        grid-template-columns: 1fr !important;

        grid-template-rows: none !important;

        gap: 18px !important;
    }

    .contact-info .contact-card {
        height: auto !important;
        min-height: 96px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .contact-form-box {
        padding: 25px 20px !important;
    }

    .contact-info {
        gap: 16px !important;
    }

    .contact-info .contact-card {
        padding: 20px !important;
        gap: 15px !important;
    }

    .contact-info .contact-card-icon {
        flex: 0 0 46px !important;

        width: 46px !important;
        height: 46px !important;

        font-size: 20px !important;
    }

    .contact-info .contact-card h3 {
        font-size: 17px !important;
    }

    .contact-info .contact-card p {
        font-size: 14px !important;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .contact-section {
        padding-bottom: 70px !important;
    }

    .contact-info .contact-card {
        padding: 18px !important;
        gap: 13px !important;
    }

    .contact-info .contact-card-icon {
        flex: 0 0 43px !important;

        width: 43px !important;
        height: 43px !important;

        font-size: 18px !important;
    }

    .contact-info .contact-card h3 {
        font-size: 16px !important;
    }

    .contact-info .contact-card p {
        font-size: 13.5px !important;
    }
}

/* =========================================================
   FINAL FIX - SOCIAL MEDIA LINKS
   ========================================================= */

.social-bar {
    position: fixed !important;
    z-index: 99999 !important;
}

.social-bar-inner {
    position: relative !important;
    z-index: 100000 !important;
}

.social-links {
    position: relative !important;
    z-index: 100001 !important;
    pointer-events: auto !important;
}

.social-link {
    position: relative !important;
    z-index: 100002 !important;

    pointer-events: auto !important;

    cursor: pointer !important;

    display: flex !important;
}


/* =========================================================
   JOBS PAGE
   GRATIA GmbH
========================================================= */

.jobs-page-hero {
    position: relative;
    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(51, 51, 51, 0.78),
            rgba(51, 51, 51, 0.78)
        ),
        url("images/hero.png");

    background-size: cover;
    background-position: center;
}


.jobs-page-hero-content {
    width: min(850px, 92%);
    padding: 50px 20px;
}


.jobs-eyebrow,
.jobs-section-label {
    display: inline-block;

    margin-bottom: 15px;

    color: #872020;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}


.jobs-page-hero .jobs-eyebrow {
    color: #ffffff;
}


.jobs-page-hero h1 {
    margin: 0 auto 18px;

    max-width: 800px;

    color: #ffffff;

    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.12;
}


.jobs-page-hero p {
    max-width: 700px;
    margin: 0 auto;

    color: #eeeeee;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   JOB INTRO
========================================================= */

.jobs-intro {
    padding: 95px 0 70px;

    background: #ffffff;
}


.jobs-intro-content {
    max-width: 850px;
    margin: 0 auto;

    text-align: center;
}


.jobs-intro-content h2,
.jobs-section-heading h2,
.application-heading h2,
.jobs-contact-box h2 {
    margin-bottom: 20px;

    color: #333333;

    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.2;
}


.jobs-intro-content p {
    max-width: 800px;
    margin: 0 auto 15px;

    color: #666666;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   OPEN JOBS
========================================================= */

.jobs-section {
    padding: 80px 0 100px;

    background: #f7f7f7;
}


.jobs-section-heading {
    max-width: 800px;
    margin: 0 auto 50px;

    text-align: center;
}


.jobs-section-heading p {
    color: #666666;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   OPEN JOBS - GRATIA CAREERS
========================================================= */

.jobs-section {
    padding: 50px 0 90px;
    background: #f7f7f7;
}

.jobs-section-heading {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.jobs-section-heading h2 {
    margin-bottom: 16px;
    color: #333333;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
}

.jobs-section-heading p {
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

/* Job cards layout */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;

    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

    align-items: stretch;
}

/* Center a single job card */

.jobs-grid:has(.job-card:only-child) {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

.job-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 30px;

    background: #ffffff;
    border: 1px solid #e9e2e0;
    border-radius: 14px;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: rgba(135, 32, 32, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.job-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    color: #872020;
    background: #f6eaea;
    border-radius: 12px;
    font-size: 21px;
}

.job-category {
    color: #872020;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.job-card h3 {
    margin: 0 0 12px;
    color: #292929;
    font-size: clamp(22px, 2.2vw, 27px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.job-short-text {
    margin: 0 0 24px;
    color: #666666;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.job-detail strong {
    display: block;
    margin-bottom: 7px;
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
}

.job-detail p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.job-detail ul {
    margin: 0;
    padding-left: 20px;
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
}

.job-detail li {
    margin-bottom: 5px;
}

.job-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 20px;

    color: #ffffff;
    background: #872020;
    border: 1px solid #872020;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.job-button:hover {
    color: #ffffff;
    background: #6f1919;
    border-color: #6f1919;
    transform: translateY(-2px);
}

.job-button:focus-visible {
    outline: 3px solid rgba(135, 32, 32, 0.3);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 900px) {
    .jobs-grid {
        gap: 20px;
    }

    .job-card {
        padding: 24px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .jobs-section {
        padding: 50px 0 60px;
    }

    .jobs-section-heading {
        margin-bottom: 28px;
    }

    .jobs-grid,
    .jobs-grid:has(.job-card:only-child) {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .job-card {
        padding: 22px;
        border-radius: 12px;
    }

    .job-card h3 {
        font-size: 23px;
    }

    .job-details {
        gap: 18px;
    }
}


/* =========================================================
   APPLICATION
========================================================= */

.application-section {
    padding: 100px 0;

    background: #ffffff;
}


.application-box {
    max-width: 1000px;

    margin: 0 auto;

    padding: 45px;

    background: #ffffff;

    border: 1px solid rgba(135, 32, 32, 0.12);

    border-radius: 18px;

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}


.application-heading {
    max-width: 750px;

    margin: 0 auto 40px;

    text-align: center;
}


.application-heading p {
    color: #666666;

    line-height: 1.7;
}


.application-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.form-group {
    display: flex;
    flex-direction: column;
}


.form-group-full {
    grid-column: 1 / -1;
}


.form-group label {
    margin-bottom: 8px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    color: #333333;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #872020;

    box-shadow: 0 0 0 3px rgba(135, 32, 32, 0.08);
}


.form-group textarea {
    resize: vertical;

    min-height: 145px;
}


.upload-box {
    padding: 20px;

    background: #fafafa;

    border: 1px dashed rgba(135, 32, 32, 0.35);

    border-radius: 8px;
}


.upload-box input {
    border: none;

    padding: 0;

    box-shadow: none;
}


.upload-box p {
    margin: 8px 0 0;

    color: #777777;

    font-size: 13px;
}


.privacy-checkbox {
    display: flex !important;

    flex-direction: row !important;

    align-items: flex-start;

    gap: 10px;

    margin-top: 5px;
}


.privacy-checkbox input {
    width: 17px;

    height: 17px;

    flex-shrink: 0;

    margin-top: 2px;
}


.privacy-checkbox span {
    color: #666666;

    font-size: 13px;
    line-height: 1.6;
}


.privacy-checkbox a {
    color: #872020;

    font-weight: 600;
}


.application-submit {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;
}


.application-submit-button {
    min-width: 210px;

    border: none;

    cursor: pointer;
}


.application-note {
    margin: 0;

    color: #777777;

    font-size: 12px;
}


/* =========================================================
   JOB CONTACT
========================================================= */

.jobs-contact-section {
    padding: 80px 0 100px;

    background: #f7f7f7;
}


.jobs-contact-box {
    max-width: 850px;

    margin: 0 auto;

    padding: 55px 40px;

    text-align: center;

    background: #ffffff;

    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}


.jobs-contact-box p {
    max-width: 650px;

    margin: 0 auto 28px;

    color: #666666;

    line-height: 1.7;
}


/* =========================================================
   JOBS RESPONSIVE
========================================================= */

@media (max-width: 900px) {

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

    .application-box {
        padding: 35px 28px;
    }

}


@media (max-width: 760px) {
.jobs-page-hero {
    min-height: 330px;
    margin-top: 117px;
}
n
    .jobs-page-hero-content {
        padding: 40px 15px;
    }

    .jobs-page-hero h1 {
        font-size: 38px;
    }

    .jobs-page-hero p {
        font-size: 16px;
    }

    .jobs-intro,
    .jobs-section,
    .application-section {
        padding: 70px 0;
    }

    .jobs-section-heading {
        margin-bottom: 35px;
    }

    .job-card {
        padding: 30px 25px;
    }

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

    .form-group-full {
        grid-column: auto;
    }

    .application-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .application-submit-button {
        width: 100%;
    }

}


@media (max-width: 430px) {

    .jobs-page-hero {
        min-height: 300px;
    }

    .jobs-page-hero h1 {
        font-size: 32px;
    }

    .jobs-page-hero p {
        font-size: 15px;
    }

    .jobs-intro,
    .jobs-section,
    .application-section,
    .jobs-contact-section {
        padding: 60px 0;
    }

    .job-card {
        padding: 25px 20px;
    }

    .job-card h3 {
        font-size: 24px;
    }

    .application-box {
        padding: 28px 20px;
    }

    .jobs-contact-box {
        padding: 40px 20px;
    }

}


/* Jobs toolbar */

.jobs-toolbar {
    max-width: 1050px;
    margin: 0 auto 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.jobs-filters {
    display: flex;
    flex: 1;
    gap: 14px;
}

.jobs-filters label,
.jobs-sort {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.jobs-filters label {
    flex: 1;
}

.jobs-toolbar label span {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.jobs-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #333;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    font: inherit;
}

.jobs-toolbar select:focus {
    outline: 2px solid rgba(135, 32, 32, 0.2);
    border-color: #872020;
}

/* Job card layout */

.job-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #e8e3e1;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.045);
}

.job-card-image {
    min-height: 100%;
    background: #f3e8e5;
}

.job-image-placeholder {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #872020;
    font-size: 48px;
}

.job-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.job-status {
    color: #49684e;
    background: #edf5ed;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
}

.job-card-content h3 {
    margin: 0 0 12px;
    color: #292929;
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.job-card-content .job-short-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-bottom: 18px;
    color: #555;
    font-size: 13px;
}

.job-deadline {
    color: #666;
    font-size: 12px;
}

.job-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.job-card-actions .job-button {
    flex: 1;
    width: auto;
    min-width: 130px;
    margin-top: 12px;
}

.job-button-outline {
    color: #872020;
    background: #fff;
}

.job-button-outline:hover {
    color: #fff;
    background: #872020;
}

.jobs-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #666;
    background: #fff;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .jobs-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .jobs-sort {
        max-width: 100%;
    }
}

@media (max-width: 650px) {
    .jobs-filters {
        flex-direction: column;
    }

    .job-card {
        grid-template-columns: 1fr;
    }

    .job-card-image {
        min-height: 100px;
    }

    .job-image-placeholder {
        min-height: 100px;
    }

    .job-card-content {
        padding: 20px;
    }

    .job-card-content h3 {
        font-size: 20px;
    }

    .job-card-actions {
        flex-direction: column;
    }

    .job-card-actions .job-button {
        width: 100%;
    }
}


/* ===== GRATIA Stellendetails ===== */

.stellen-details-container {
    width: min(1100px, 92%);
    margin: 50px auto;
    color: #333;
}

.back-to-jobs {
    display: inline-block;
    margin-bottom: 24px;
    color: #872020;
    text-decoration: none;
    font-weight: 600;
}

.back-to-jobs:hover {
    text-decoration: underline;
}

.job-details-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.job-details-card .job-category {
    display: inline-block;
    background: #f6eaea;
    color: #872020;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.job-details-card h1 {
    color: #872020;
    font-size: clamp(28px, 4vw, 40px);
    margin: 20px 0 16px;
}

.job-details-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 32px;
}

.job-details-card .job-meta span {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

.job-details-card section {
    border-top: 1px solid #e7e7e7;
    padding: 24px 0;
}

.job-details-card section h2 {
    color: #872020;
    font-size: 21px;
    margin: 0 0 12px;
}

.job-details-card section p {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.job-details-card > p {
    margin: 10px 0 24px;
}

.job-details-card .job-button {
    display: inline-block;
    background: #872020;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.job-details-card .job-button:hover {
    background: #651717;
}

@media (max-width: 600px) {
    .stellen-details-container {
        width: 94%;
        margin: 25px auto;
    }

    .job-details-card {
        padding: 22px 18px;
    }

    .job-details-card .job-meta {
        flex-direction: column;
    }

    .job-details-card .job-meta span {
        width: 100%;
        box-sizing: border-box;
    }

    .job-details-card .job-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}


/* =====================================
   GRATIA – Compact, Elegant Footer
===================================== */

.footer {
    background: #971414;
    color: #ffffff;
    padding: 28px 0 0;
    margin-top: 0;
}

.footer .container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-mobile-style {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 0 24px 22px;
}

/* Überschriften */
.footer .footer-section h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 700;
}

/* Navigation */
.footer-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.footer .footer-navigation a,
.footer .footer-contact-link,
.footer .footer-address {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .footer-navigation a:hover,
.footer .footer-contact-link:hover {
    color: #f2d6cc;
}

/* Kontakt */
.footer-contact-new {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer .footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    margin: 0 0 2px;
}

.footer .footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer .footer-icon {
    color: #ffffff;
    min-width: 15px;
}

/* Social Media */
.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.footer .footer-social a {
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.footer .footer-social a:hover {
    background: #ffffff;
    color: #882424;
}

/* Unterer Footer-Bereich */
.footer .footer-bottom {
    background: #e3d8d3;
    border-top: 1px solid #e3c3b6;
    padding: 6px 20px;
}

.footer .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 15px;
}

.footer .footer-copyright {
    color: #872020;
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
}

.footer .footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #872020;
    font-size: 10px;
    line-height: 1.4;
}

.footer .footer-legal a {
    color: #872020;
    text-decoration: none;
}

.footer .footer-legal a:hover {
    color: #4a1010;
    text-decoration: underline;
}

.footer .footer-legal strong {
    color: #872020;
}

/* Mobile */
@media (max-width: 700px) {
    .footer {
        padding-top: 24px;
    }

    .footer-mobile-style {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 22px 20px;
    }

    .footer-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .footer .footer-bottom {
        padding: 7px 15px;
    }

    .footer .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .footer .footer-legal {
        line-height: 1.5;
    }
}


/* =========================================
   GRATIA NEWS SECTION - PREMIUM DESIGN
   ========================================= */

.news-overview {
    padding: 80px 0 90px;
    background: #fcfaf9;
}

.news-overview > .container {
    width: min(1380px, calc(100% - 60px));
    margin: 0 auto;
}

/* Heading */

.news-overview h2 {
    margin: 0 0 18px;
    color: #19191f;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -1.5px;
}

.news-overview > .container > p {
    max-width: 760px;
    margin: 0 auto 50px;
    color: #626168;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

/* News grid */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

/* Individual card */

.news-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #f0e9e7;
    border-radius: 24px;
    box-shadow: 0 12px 38px rgba(76, 35, 42, 0.06);
    overflow-wrap: anywhere;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: #ead5d7;
    box-shadow: 0 20px 45px rgba(76, 35, 42, 0.12);
}

/* Icon */

.news-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    color: #872020;
    background: #f8eeeb;
    border-radius: 16px;
    font-size: 25px;
}

/* Card content */

.news-card-content {
    width: 100%;
    min-width: 0;
}

/* Category label */

.news-card-category {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #872020;
    background: #f9eeeb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.2px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Title */

.news-card h3 {
    margin: 0 0 14px;
    color: #202027;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.4px;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Description */

.news-card p {
    margin: 0;
    color: #64636a;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Optional images inside cards */

.news-card img {
    display: block;
    width: 100%;
    height: 210px;
    margin-bottom: 22px;
    object-fit: cover;
    border-radius: 15px;
}

/* Optional date and read-more area */

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 25px;
}

.news-card-date {
    color: #77747a;
    font-size: 14px;
}

.news-card-link {
    color: #872020;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.news-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Contact section */

.news-contact-section {
    padding: 0 0 90px;
    background: #fcfaf9;
}

.news-contact-section > .container {
    width: min(1380px, calc(100% - 60px));
    margin: 0 auto;
}

.news-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px 55px;
    color: #ffffff;
    background: #872020;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(100, 25, 35, 0.15);
}

.news-contact-box > div {
    max-width: 700px;
}

.news-contact-box span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.news-contact-box h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
}

.news-contact-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
}

.news-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 54px;
    padding: 0 28px;
    color: #872020;
    background: #ffffff;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.news-contact-button:hover {
    transform: translateY(-3px);
    background: #f8eeeb;
}

/* Tablet */

@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .news-card {
        padding: 25px;
    }

    .news-card h3 {
        font-size: 21px;
    }

    .news-contact-box {
        padding: 38px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .news-overview {
        padding: 60px 0 65px;
    }

    .news-overview > .container,
    .news-contact-section > .container {
        width: calc(100% - 32px);
    }

    .news-overview h2 {
        font-size: 34px;
        letter-spacing: -0.7px;
    }

    .news-overview > .container > p {
        margin-bottom: 32px;
        font-size: 15px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .news-card {
        min-height: auto;
        padding: 24px;
        border-radius: 19px;
    }

    .news-card h3 {
        font-size: 21px;
    }

    .news-card p {
        font-size: 15px;
        line-height: 1.8;
    }

    .news-card img {
        height: 200px;
    }

    .news-contact-section {
        padding-bottom: 60px;
    }

    .news-contact-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 30px 24px;
        border-radius: 19px;
    }

    .news-contact-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Small phones */

@media (max-width: 380px) {
    .news-overview h2 {
        font-size: 29px;
    }

    .news-card {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 19px;
    }
}


/* GRATIA NEWS - FIX CARD WIDTH AND TEXT */

.news-overview > .container {
    width: min(1380px, calc(100% - 48px)) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.news-overview .news-grid#news-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    align-items: stretch;
}

.news-overview .news-grid#news-list > .news-card {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 300px;
    padding: 28px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.news-overview .news-grid#news-list .news-card-content {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto;
}

.news-overview .news-grid#news-list .news-card-category {
    display: inline-block;
    max-width: 100%;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.news-overview .news-grid#news-list .news-card h3 {
    width: 100%;
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.news-overview .news-grid#news-list .news-card p {
    width: 100%;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 1000px) {
    .news-overview .news-grid#news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .news-overview > .container {
        width: calc(100% - 32px) !important;
    }

    .news-overview .news-grid#news-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .news-overview .news-grid#news-list > .news-card {
        min-height: auto;
        padding: 24px;
    }

    .news-overview .news-grid#news-list .news-card h3 {
        font-size: 20px;
    }
}


/* NEWS PAGE - HEADING AND SPACING FIX */

.news-page-hero {
    padding-bottom: 35px !important;
}

.news-page-hero h1 {
    font-size: clamp(34px, 3.5vw, 46px) !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
}

.news-page-hero p {
    max-width: 760px;
    margin: 0 auto !important;
    line-height: 1.8 !important;
}

.news-overview {
    padding-top: 30px !important;
}

.news-overview > .container > h2,
.news-overview .news-section-heading {
    margin-bottom: 35px !important;
}

.news-card-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
}


.news-card-date {
    display: block;
    margin: 8px 0 12px;
    color: #777;
    font-size: 0.85rem;
}

/* NEWS PAGE - MOBILE HERO SPACING FIX */

@media (max-width: 760px) {
    .news-page-hero {
        margin-top: 117px;
    }
}
/* =========================================
   GRATIA – Benutzerverwaltung
========================================= */

#users-panel {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

#users-panel h3 {
    margin: 0 0 8px;
    color: #872020;
    font-size: 22px;
    font-weight: 700;
}

#users-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

#users-panel .panel-header p {
    margin: 0;
    color: #666666;
    line-height: 1.6;
}

#users-panel .message {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f7f1f1;
    border-left: 4px solid #872020;
    border-radius: 6px;
    color: #333333;
}

/* User table */

.users-table-wrapper {
    width: 100%;
    margin: 20px 0 38px;
    overflow-x: auto;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
}

#users-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
}

#users-table th {
    padding: 16px 14px;
    background: #872020;
    color: #ffffff;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

#users-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 14px;
    vertical-align: top;
}

#users-table tbody tr:nth-child(even) {
    background: #faf8f8;
}

#users-table tbody tr:hover {
    background: #f7eeee;
}

#users-table tbody tr:last-child td {
    border-bottom: none;
}

#users-table .permission-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px !important;
    cursor: pointer;
    line-height: 1.5;
}

#users-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #872020;
    cursor: pointer;
    flex-shrink: 0;
}

/* Buttons */

#users-panel button {
    min-height: 40px;
    padding: 10px 16px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#users-panel .refresh-button,
#users-panel .save-button {
    background: #872020;
    color: #ffffff;
}

#users-panel .refresh-button:hover,
#users-panel .save-button:hover {
    background: #651717;
    transform: translateY(-1px);
}

#users-panel button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* New user form */

#users-panel .user-form {
    padding: 26px;
    background: #faf8f8;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
}

#users-panel .user-form-intro {
    margin-top: 0;
    margin-bottom: 24px;
    color: #555555;
    line-height: 1.7;
}

#users-panel .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

#users-panel .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

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

#users-panel .field label {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

#users-panel .field input,
#users-panel .field select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font: inherit;
    box-sizing: border-box;
}

#users-panel .field input:focus,
#users-panel .field select:focus {
    outline: 2px solid rgba(135, 32, 32, 0.18);
    border-color: #872020;
}

#users-panel .form-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 26px 0;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    line-height: 1.7;
}

#users-panel .form-security-note strong {
    display: block;
    margin-bottom: 5px;
    color: #872020;
}

#users-panel .form-security-note p {
    margin: 0;
    color: #555555;
}

#users-panel .form-security-icon {
    font-size: 22px;
}

#users-panel .primary-button {
    min-height: 46px;
    padding: 12px 22px;
    background: #872020;
    color: #ffffff;
}

#users-panel .primary-button:hover {
    background: #651717;
}

#users-panel #create-user-message {
    margin-top: 14px;
    color: #333333;
}

/* Responsive layout */

@media (max-width: 700px) {
    #users-panel {
        margin: 16px auto;
        padding: 18px;
        border-radius: 10px;
    }

    #users-panel .panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    #users-panel h3 {
        font-size: 19px;
    }

    #users-panel .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #users-panel .field-full {
        grid-column: auto;
    }

    #users-panel .user-form {
        padding: 18px;
    }

    #users-panel .primary-button,
    #users-panel .refresh-button {
        width: 100%;
    }
}


/* Back to Dashboard button */
.user-page-navigation {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 32px;
    box-sizing: border-box;
}

.back-dashboard-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #872020;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    transition: background 0.2s ease;
}

.back-dashboard-button:hover {
    background: #651717;
    color: #ffffff;
}

@media (max-width: 700px) {
    .user-page-navigation {
        padding: 0 18px;
        margin-top: 16px;
    }
}


/* ===================================
   GRATIA – Kontaktanfragen
=================================== */

.messages-panel {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.messages-panel h2,
.messages-panel h3 {
    color: #872020;
    margin-top: 0;
}

.messages-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.messages-panel button {
    background: #872020;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.messages-panel button:hover {
    background: #681717;
    transform: translateY(-1px);
}

.messages-panel .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

.messages-panel table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #ffffff;
}

.messages-panel th {
    background: #f7eeee;
    color: #672020;
    text-align: left;
    padding: 15px 14px;
    font-size: 14px;
    white-space: nowrap;
}

.messages-panel td {
    padding: 14px;
    border-top: 1px solid #eeeeee;
    color: #444444;
    font-size: 14px;
    vertical-align: middle;
}

.messages-panel tbody tr:hover {
    background: #fffafa;
}

.messages-panel td button {
    padding: 8px 14px;
    white-space: nowrap;
}

.messages-panel .message,
.messages-panel #messages-message {
    margin: 12px 0;
    color: #555555;
}

@media (max-width: 768px) {
    .messages-panel {
        margin: 16px auto;
        padding: 16px;
        border-radius: 12px;
    }

    .messages-panel .panel-header {
        align-items: flex-start;
    }
}


/* ========================================
   GRATIA – Jobbewerbungen
======================================== */

#applications-panel {
    margin: 30px auto;
    padding: 28px;
    max-width: 1400px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#applications-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
}

#applications-panel .panel-header h3 {
    margin: 0 0 8px;
    color: #872020;
    font-size: 25px;
    font-weight: 700;
}

#applications-panel .panel-header p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

#refresh-applications-button {
    padding: 11px 18px;
    border: none;
    border-radius: 7px;
    background: #872020;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#refresh-applications-button:hover {
    background: #681717;
    transform: translateY(-1px);
}

#refresh-applications-button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

#applications-message {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 7px;
    background: #f5f5f5;
    color: #444444;
    font-size: 14px;
}

#applications-message.error {
    background: #fff0f0;
    color: #a51d1d;
    border: 1px solid #f0cccc;
}

.applications-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e7e7e7;
    border-radius: 9px;
}

#applications-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

#applications-table thead {
    background: #872020;
    color: #ffffff;
}

#applications-table th {
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#applications-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 14px;
    vertical-align: middle;
}

#applications-table tbody tr:last-child td {
    border-bottom: none;
}

#applications-table tbody tr:nth-child(even) {
    background: #faf8f8;
}

#applications-table tbody tr:hover {
    background: #f7eeee;
}

#applications-table td:last-child {
    min-width: 220px;
}

#applications-table .details-button {
    padding: 9px 13px;
    border: none;
    border-radius: 6px;
    background: #872020;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#applications-table .details-button:hover {
    background: #681717;
}

#applications-table .details-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Seitenkopf */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 22px 5%;
    background: #ffffff;
    border-bottom: 3px solid #872020;
}

.admin-header h1 {
    margin: 0;
    color: #872020;
    font-size: 27px;
}

.admin-header a {
    color: #872020;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.admin-header a:hover {
    text-decoration: underline;
}

.admin-main {
    padding: 20px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .admin-header h1 {
        font-size: 22px;
    }

    .admin-main {
        padding: 10px;
    }

    #applications-panel {
        margin: 15px auto;
        padding: 16px;
        border-radius: 10px;
    }

    #applications-panel .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    #refresh-applications-button {
        width: 100%;
    }

    #applications-panel .panel-header h3 {
        font-size: 21px;
    }
}


/* Jobbewerbungen – gleicher Banner wie Mitarbeiterportal */

body:has(#applications-panel) .admin-header {
    background: #872020;
    color: #ffffff;
    border-bottom: none;
    padding: 22px 5%;
}

body:has(#applications-panel) .admin-header h1 {
    color: #ffffff;
}

body:has(#applications-panel) .admin-header a {
    color: #ffffff;
}

body:has(#applications-panel) .admin-header a:hover {
    color: #f0dede;
}


/* =====================================
   GRATIA – Footer Color Override
   ===================================== */

/* بخش تماس بالای فوتر */
.site-footer .footer-cta,
.footer-cta {
    background: linear-gradient(135deg, #872020, #681919) !important;
    color: #ffffff !important;
}

/* پس‌زمینه اصلی فوتر */
.site-footer,
footer.site-footer {
    background: #3b2925 !important;
    color: #f5f0eb !important;
}

/* عنوان‌ها */
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #ffffff !important;
}

/* لینک‌ها */
.site-footer a {
    color: #e7c9a0 !important;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff !important;
}

/* قسمت پایین فوتر */
.site-footer .footer-bottom,
.footer-bottom {
    background: #f5f3ef !important;
    color: #6b625d !important;
    border-top: 1px solid #e7e0d9 !important;
}

.site-footer .footer-bottom a,
.footer-bottom a {
    color: #872020 !important;
}

/* =========================================
   LEISTUNGEN HERO
   Desktop + Mobile Responsive Design
========================================= */

.leistungen-hero {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 500px;
    height: 500px;

    margin-top: 0;
    padding: 0;

    overflow: hidden;
    box-sizing: border-box;

    color: #fff;

    background-image:
        linear-gradient(
            90deg,
            rgba(65, 20, 20, 0.96) 0%,
            rgba(85, 28, 28, 0.88) 34%,
            rgba(85, 28, 28, 0.38) 58%,
            rgba(0, 0, 0, 0.02) 100%
        ),
        url("images/Leistungen2.png");

    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

/* Hero Content */

.leistungen-hero-content {
    position: relative;
    z-index: 2;

    width: 52%;
    max-width: 620px;

    padding: 40px 35px 40px 6%;

    box-sizing: border-box;
}

/* Eyebrow */

.leistungen-hero .eyebrow {
    display: block;

    margin-bottom: 16px;

    color: #e8c39b;

    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.5;
}

/* Main Heading */

.leistungen-hero h1,
.leistungen-hero-content h1 {
    width: 100%;
    max-width: 520px;

    margin: 0 0 16px;

    color: #fffdf9;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.15;

    overflow-wrap: normal;
    word-break: normal;
}

/* Description */

.leistungen-hero p {
    width: 100%;
    max-width: 430px;

    margin: 0;

    color: #fff7f2;

    font-size: 14px;
    line-height: 1.65;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 760px) {

    .leistungen-hero {
        width: 100%;

        min-height: 430px;
        height: auto;

        margin-top: 117px;

        align-items: center;

        background-position: 58% center;
    }

    .leistungen-hero-content {
        width: 100%;
        max-width: 100%;

        padding: 40px 7%;

        background: linear-gradient(
            90deg,
            rgba(65, 20, 20, 0.82),
            rgba(65, 20, 20, 0.35)
        );
    }

    .leistungen-hero h1,
    .leistungen-hero-content h1 {
        max-width: 100%;

        font-size: 31px;
        line-height: 1.15;
    }

    .leistungen-hero p {
        max-width: 100%;

        font-size: 13px;
        line-height: 1.7;
    }
}

/* Prevent horizontal overflow */

body {
    overflow-x: hidden;
}


/* =========================================
   LEISTUNGEN – Service Grid
   Nur für die Leistungen-Seite
========================================= */

.leistungen-services {
    padding: 72px 5% 85px;
    background: #f8f6f1;
}

.leistungen-services-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.leistungen-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #872020;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.leistungen-services-heading h2 {
    margin: 0 0 14px;
    color: #492b28;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.leistungen-services-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #77716b;
    font-size: 15px;
    line-height: 1.8;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
}

.leistung-card {
    min-height: 165px;
    padding: 25px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #fffefa;
    border: 1px solid #eee8df;
    border-radius: 5px;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.leistung-card:hover {
    transform: translateY(-4px);
    border-color: #d9c5bd;
    box-shadow: 0 10px 24px rgba(65, 37, 32, 0.08);
}

.leistung-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #82534f;
    color: #fffaf4;
    font-size: 27px;
}

.leistung-card h3 {
    margin: 0;
    color: #4a3935;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 1050px) {
    .leistungen-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Smartphone */
@media (max-width: 650px) {
    .leistungen-services {
        padding: 48px 18px 58px;
    }

    .leistungen-services-heading {
        margin-bottom: 30px;
    }

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

    .leistung-card {
        min-height: 150px;
        padding: 20px 10px;
    }

    .leistung-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .leistung-card h3 {
        font-size: 13px;
    }
}


/* ==========================================
   GRATIA – Pflegeleistungen
========================================== */

.leistungen-services {
    padding: 70px 5% 18px;
    background: #faf8f4;
}

.leistungen-services-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.leistungen-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #792e2c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
}

.leistungen-services-heading .leistungen-eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.leistungen-eyebrow span {
    display: inline-block;
    width: 34px;
    height: 2px;
    flex-shrink: 0;
    background: #792e2c;
}

.leistungen-services-heading h2,
.intensivpflege-content h2,
.leistungen-contact h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.leistungen-services-heading h2 {
    margin: 0 0 12px;
    color: #47231f;
    font-size: clamp(29px, 3.2vw, 39px);
    line-height: 1.2;
}

.leistungen-services-heading > p {
    max-width: 690px;
    margin: 0 auto;
    color: #6e625d;
    font-size: 15px;
    line-height: 1.7;
}

/* Service grid: fünf Spalten */

.leistungen-services .leistungen-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 15px;
    max-width: 1330px;
    margin: 0 auto;
}

/* Service cards */

.leistungen-services .leistung-card {
    min-width: 0;
    min-height: 148px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #fffefd;
    border: 1px solid #eee7df;
    border-radius: 7px;
    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.leistungen-services .leistung-card:hover {
    transform: translateY(-4px);
    border-color: #d8bdb6;
    box-shadow: 0 10px 25px rgba(75, 35, 31, 0.08);
}

.leistungen-services .leistung-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: #803431;
    border-radius: 50%;
}

.leistungen-services .leistung-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.6;
}

.leistungen-services .leistung-card h3 {
    margin: 0;
    color: #482823;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

/* Slogan in der letzten Grid-Zeile */

.leistungen-motto {
    grid-column: span 2;
    min-height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 15px;
    color: #792e2c;
}

.leistungen-motto > svg {
    width: 76px;
    height: 76px;
    stroke-width: 1.3;
    flex-shrink: 0;
}

.leistungen-motto p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.35;
}

/* ==========================================
   Intensivpflege zu Hause
========================================== */

.intensivpflege-home {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 65px);

    padding: 18px 5% 22px;
    background: #fffdf9;
}

.intensivpflege-content {
    max-width: 570px;
    justify-self: center;
    width: 100%;
}

.intensivpflege-content .leistungen-eyebrow {
    margin-bottom: 13px;
}

.intensivpflege-content h2 {
    margin: 0 0 16px;
    color: #47231f;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.18;
}

.intensivpflege-content > p {
    margin: 0 0 18px;
    color: #625650;
    font-size: 15px;
    line-height: 1.7;
}

.intensivpflege-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
}

.intensivpflege-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contact buttons */

.leistungen-button,
.leistungen-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.leistungen-button {
    color: #fff;
    background: #792e2c;
}

.leistungen-button:hover {
    background: #5f211f;
    transform: translateY(-2px);
}

.leistungen-button svg,
.leistungen-contact-button svg {
    width: 17px;
    height: 17px;
}

/* ==========================================
   Burgundy contact banner
========================================== */

.leistungen-contact {
    padding: 25px 5%;
    color: #fff;
    background: #632522;
}

.leistungen-contact-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.leistungen-contact .leistungen-eyebrow {
    margin-bottom: 8px;
    color: #f0d8cf;
}

.leistungen-contact .leistungen-eyebrow span {
    background: #f0d8cf;
}

.leistungen-contact h2 {
    max-width: 850px;
    margin: 0 0 7px;
    color: #fffaf5;
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.25;
}

.leistungen-contact-text > p {
    margin: 0;
    color: #f0e2dc;
    font-size: 14px;
    line-height: 1.7;
}

.leistungen-contact-button {
    flex-shrink: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
}

.leistungen-contact-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ==========================================
   Responsive design
========================================== */

@media (max-width: 1050px) {
    .leistungen-services .leistungen-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intensivpflege-home {
        gap: 30px;
    }

    .intensivpflege-image {
        height: 290px;
    }
}

@media (max-width: 700px) {
    .leistungen-services {
        padding: 48px 5% 15px;
    }

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

    .leistungen-services .leistung-card {
        min-height: 140px;
        padding: 17px 9px;
    }

    .leistungen-services .leistung-card h3 {
        font-size: 13px;
    }

    .leistungen-services .leistung-icon {
        width: 49px;
        height: 49px;
    }

    .leistungen-services .leistung-icon svg {
        width: 25px;
        height: 25px;
    }

    .leistungen-motto {
        grid-column: 1 / -1;
        min-height: 100px;
    }

    .leistungen-motto > svg {
        width: 55px;
        height: 55px;
    }

    .intensivpflege-home {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 5%;
    }

    .intensivpflege-image {
        height: 260px;
    }

    .leistungen-contact-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .leistungen-contact {
        padding: 30px 5%;
    }
}

@media (max-width: 380px) {
    .leistungen-services .leistung-card {
        padding: 14px 7px;
    }

    .leistungen-services .leistung-card h3 {
        font-size: 12px;
    }

    .leistungen-motto {
        gap: 10px;
    }

    .leistungen-motto > svg {
        width: 43px;
        height: 43px;
    }
}


/* =====================================
   ÜBER UNS – UNSERE WERTE
===================================== */

.werte-section {
    padding: 85px 6%;
    background: #f8f7f4;
}

.werte-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #872020;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.werte-heading h2,
.philosophie-content h2 {
    margin: 0 0 18px;
    color: #512323;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
}

.werte-heading > p {
    max-width: 680px;
    margin: 0 auto;
    color: #68615e;
    font-size: 15px;
    line-height: 1.9;
}

.werte-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
}

.werte-card {
    padding: 30px 24px;
    background: #fff;
    border: 1px solid #eee7e2;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(65, 31, 31, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.werte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(65, 31, 31, 0.09);
}

.werte-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    color: #872020;
    background: #f8eeee;
    border-radius: 50%;
}

.werte-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.werte-card h3 {
    margin: 0 0 12px;
    color: #382e2c;
    font-size: 18px;
    line-height: 1.4;
}

.werte-card p {
    margin: 0;
    color: #6e6865;
    font-size: 14px;
    line-height: 1.85;
}

/* =====================================
   ÜBER UNS – PHILOSOPHIE
===================================== */

.philosophie-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 65px 6% 90px;
    background: #fff;
}

.philosophie-image {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
}

.philosophie-image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
}

.philosophie-content h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.philosophie-content p {
    margin: 0 0 26px;
    color: #68615e;
    font-size: 15px;
    line-height: 1.9;
}

.philosophie-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: #fff;
    background: #872020;
    border: 1px solid #872020;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.philosophie-button:hover {
    background: #641717;
    transform: translateY(-2px);
}

.philosophie-button span {
    font-size: 19px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1000px) {
    .werte-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .philosophie-section {
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .werte-section {
        padding: 58px 5%;
    }

    .werte-heading {
        margin-bottom: 30px;
    }

    .werte-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .werte-card {
        padding: 24px;
    }

    .philosophie-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 45px 5% 60px;
    }

    .philosophie-image img {
        height: 260px;
    }
}


/* =========================================
   HAUS SONNENBLUME
========================================= */

.sonnenblume-page {
    --sonnenblume-red: #872020;
    --sonnenblume-dark: #4a211f;
    --sonnenblume-gold: #d8bd86;
    --sonnenblume-bg: #faf8f4;
    --sonnenblume-text: #393331;
    color: var(--sonnenblume-text);
    background: var(--sonnenblume-bg);
}

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

.sonnenblume-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sonnenblume-page .section-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero */

.sonnenblume-hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 76px max(6%, calc((100% - 1160px) / 2));
    background:
        linear-gradient(
            90deg,
            rgba(48, 19, 18, 0.88) 0%,
            rgba(74, 25, 23, 0.72) 45%,
            rgba(74, 25, 23, 0.12) 100%
        ),
        url("images/haus-sonnenblumen.png") center 55% / cover no-repeat;
    color: #fff;
}

.sonnenblume-hero-content {
    max-width: 610px;
}

.sonnenblume-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--sonnenblume-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sonnenblume-hero .sonnenblume-eyebrow,
.sonnenblume-care .sonnenblume-eyebrow,
.sonnenblume-cta .sonnenblume-eyebrow {
    color: var(--sonnenblume-gold);
}

.sonnenblume-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 700;
}

.sonnenblume-hero h2 {
    margin: 0 0 18px;
    color: #f2dca8;
    font-size: clamp(21px, 2.5vw, 30px);
    line-height: 1.3;
}

.sonnenblume-hero p {
    max-width: 540px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.8;
}

/* Buttons */

.sonnenblume-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 23px;
    border: 1px solid var(--sonnenblume-red);
    border-radius: 7px;
    background: var(--sonnenblume-red);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sonnenblume-button:hover {
    background: #641717;
    transform: translateY(-2px);
}

.sonnenblume-button-light {
    flex-shrink: 0;
    border-color: #fff;
    background: #fff;
    color: var(--sonnenblume-red);
}

.sonnenblume-button-light:hover {
    background: #f5e9e2;
    color: var(--sonnenblume-dark);
}

/* Introduction */

.sonnenblume-intro {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 58px;
    padding-block: 88px;
}

.sonnenblume-intro-text h2,
.sonnenblume-section-heading h2,
.sonnenblume-care-text h2,
.sonnenblume-philosophy h2,
.sonnenblume-cta h2 {
    margin: 0 0 20px;
    color: var(--sonnenblume-dark);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
}

.sonnenblume-intro-text p,
.sonnenblume-living-card-content p,
.sonnenblume-care-text p,
.sonnenblume-philosophy-text {
    color: #6e6762;
    font-size: 15px;
    line-height: 1.9;
}

.sonnenblume-intro-image {
    height: 390px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(49, 29, 25, 0.12);
}

.sonnenblume-intro-image img {
    transition: transform 0.5s ease;
}

.sonnenblume-intro-image:hover img {
    transform: scale(1.04);
}

/* Facts */

.sonnenblume-facts {
    padding-block: 78px 88px;
    background: #f1ece5;
}

.sonnenblume-section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.sonnenblume-section-heading > p {
    color: #77706b;
    font-size: 15px;
    line-height: 1.8;
}

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

.sonnenblume-fact-card {
    min-height: 245px;
    padding: 30px 22px;
    border: 1px solid rgba(135, 32, 32, 0.09);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sonnenblume-fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(63, 34, 29, 0.09);
}

.sonnenblume-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #f3e9e5;
    color: var(--sonnenblume-red);
}

.sonnenblume-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sonnenblume-fact-card h3 {
    margin: 0 0 12px;
    color: var(--sonnenblume-dark);
    font-size: 17px;
}

.sonnenblume-fact-card p {
    margin: 0;
    color: #77706b;
    font-size: 13px;
    line-height: 1.8;
}

/* Living spaces */

.sonnenblume-living {
    padding-block: 88px;
}

.sonnenblume-living .sonnenblume-section-heading {
    text-align: left;
    max-width: 760px;
    margin: 0 0 36px;
}

.sonnenblume-living-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sonnenblume-living-card {
    overflow: hidden;
    border: 1px solid #ece4dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(45, 29, 24, 0.04);
}

.sonnenblume-living-card img {
    height: 225px;
    transition: transform 0.4s ease;
}

.sonnenblume-living-card:hover img {
    transform: scale(1.035);
}

.sonnenblume-living-card-content {
    padding: 24px;
}

.sonnenblume-living-card-content h3 {
    margin: 0 0 12px;
    color: var(--sonnenblume-dark);
    font-size: 19px;
}

.sonnenblume-living-card-content p {
    margin: 0;
    font-size: 14px;
}

.sonnenblume-area-note {
    margin: 32px 0 0;
    padding: 20px 24px;
    border-left: 4px solid var(--sonnenblume-red);
    border-radius: 4px;
    background: #f6f0ea;
    color: #5d514b;
    line-height: 1.8;
}

/* Care */

.sonnenblume-care {
    padding-block: 84px;
    background: var(--sonnenblume-dark);
    color: #fff;
}

.sonnenblume-care-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.sonnenblume-care-text h2 {
    color: #fff;
}

.sonnenblume-care-text p {
    color: rgba(255, 255, 255, 0.82);
}

.sonnenblume-care-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 24px 0 30px;
    padding: 0;
    list-style: none;
}

.sonnenblume-care-list li {
    position: relative;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.7;
}

.sonnenblume-care-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--sonnenblume-gold);
    content: "✓";
    font-weight: 700;
}

.sonnenblume-care-image {
    height: 470px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.sonnenblume-care-image img {
    object-position: center;
}

/* Philosophy */

.sonnenblume-philosophy {
    max-width: 900px !important;
    padding-block: 90px;
    text-align: center;
}

.sonnenblume-philosophy blockquote {
    margin: 28px 0 12px;
    color: var(--sonnenblume-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 30px);
    font-style: italic;
    line-height: 1.6;
}

.sonnenblume-quote-author {
    color: #7b6c64;
    font-size: 13px;
}

.sonnenblume-philosophy-text {
    max-width: 760px;
    margin: 28px auto 0;
}

/* Contact */

.sonnenblume-cta {
    padding-block: 60px;
    background:
        linear-gradient(110deg, rgba(74, 33, 31, 0.98), rgba(105, 39, 35, 0.96));
    color: #fff;
}

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

.sonnenblume-cta h2 {
    max-width: 700px;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
}

.sonnenblume-cta p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.83);
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 900px) {
    .sonnenblume-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sonnenblume-intro,
    .sonnenblume-care-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sonnenblume-intro-image {
        height: 340px;
    }

    .sonnenblume-care-image {
        height: 360px;
    }

    .sonnenblume-living-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .sonnenblume-page .section-container {
        width: calc(100% - 32px);
    }

    .sonnenblume-hero {
        min-height: 440px;
        padding: 55px 24px;
        background-position: 58% center;
    }

    .sonnenblume-hero p {
        font-size: 14px;
    }

    .sonnenblume-intro,
    .sonnenblume-living {
        padding-block: 58px;
    }

    .sonnenblume-facts {
        padding-block: 58px;
    }

    .sonnenblume-facts-grid,
    .sonnenblume-living-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sonnenblume-fact-card {
        min-height: auto;
        padding: 25px 20px;
    }

    .sonnenblume-care {
        padding-block: 58px;
    }

    .sonnenblume-care-list {
        grid-template-columns: 1fr;
    }

    .sonnenblume-care-image {
        height: 280px;
    }

    .sonnenblume-philosophy {
        padding-block: 60px;
    }

    .sonnenblume-cta {
        padding-block: 48px;
    }

    .sonnenblume-button {
        width: 100%;
    }
}


/* =========================================
   INTENSIVPFLEGE – GRATIA
========================================= */

.intensiv-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 550px;
    padding: 65px 8%;
    overflow: hidden;
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(48, 22, 20, 0.94) 0%,
            rgba(75, 32, 29, 0.78) 43%,
            rgba(75, 32, 29, 0.08) 100%
        ),
        url("images/pflege.png")
        center 45% / cover no-repeat;
}

.intensiv-hero-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.intensiv-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #a77d5d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.intensiv-hero .intensiv-eyebrow {
    color: #e8c996;
}

.intensiv-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
}

.intensiv-hero h2 {
    margin: 0 0 18px;
    color: #f0d6a0;
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.4;
}

.intensiv-hero p {
    max-width: 470px;
    margin: 0 0 27px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.9;
}


/* BUTTON */

.intensiv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 23px;
    border: 1px solid #872020;
    border-radius: 7px;
    background: #872020;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.intensiv-button:hover {
    background: #641717;
    transform: translateY(-2px);
}


/* SCHWERPUNKTE */

.intensiv-schwerpunkte {
    padding: 50px 7%;
    background: #faf8f4;
}

.intensiv-section-heading {
    max-width: 700px;
    margin: 0 auto 35px;
    text-align: center;
}

.intensiv-section-heading h2 {
    margin: 0 0 13px;
    color: #542b29;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3.5vw, 38px);
}

.intensiv-section-heading p {
    margin: 0;
    color: #77706a;
    font-size: 15px;
    line-height: 1.8;
}

.intensiv-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.intensiv-card {
    padding: 30px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee6df;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(60, 35, 25, 0.045);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.intensiv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(60, 35, 25, 0.09);
}

.intensiv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 17px;
    color: #872020;
}

.intensiv-icon svg {
    display: block;
    width: 54px;
    height: 54px;
}

.intensiv-card h3 {
    margin: 0 0 12px;
    color: #342725;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.4;
}

.intensiv-card p {
    margin: 0;
    color: #746c67;
    font-size: 14px;
    line-height: 1.8;
}


/* ERFAHRUNG */

.intensiv-erfahrung {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 38px;
    margin: 65px;
    padding: 22px;
    background: #f7eee7;
    border: 1px solid #eee3da;
    border-radius: 12px;

}

.intensiv-erfahrung-image {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
}

.intensiv-erfahrung-image img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.intensiv-erfahrung-content {
    padding: 15px 20px 15px 0;
}

.intensiv-erfahrung-content h2 {
    margin: 0 0 15px;
    color: #542b29;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
}

.intensiv-erfahrung-content p {
    margin: 0 0 23px;
    color: #655c57;
    font-size: 15px;
    line-height: 1.9;
}


/* RESPONSIVE */
@media (max-width: 600px) {
    .intensiv-hero {
        min-height: 440px;
        padding: 135px 24px 42px;
        background-position: 60% center;
        background-size: cover;
        box-sizing: border-box;
    }

    .intensiv-hero h1 {
        margin-top: 0;
        font-size: clamp(32px, 8vw, 44px);
        line-height: 1.15;
    }

    .intensiv-hero p {
        font-size: 14px;
    }

    .intensiv-cards {
        grid-template-columns: 1fr;
    }

    .intensiv-card {
        padding: 27px 22px;
    }

    .intensiv-erfahrung {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 22px 45px;
        padding: 16px;
    }

    .intensiv-erfahrung-image img {
        height: 230px;
    }

    .intensiv-erfahrung-content {
        padding: 8px 5px 12px;
    }
}

/* ==============================
   UNSER TEAM – GRATIA
================================ */

.team-page {
    color: #352725;
    background: #fffdf9;
}

.team-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 70px 8%;
    background:
        linear-gradient(
            90deg,
            rgba(67, 24, 22, 0.96) 0%,
            rgba(91, 34, 31, 0.88) 48%,
            rgba(91, 34, 31, 0.25) 100%
        ),
        url("images/team-hero.png") center 35% / cover no-repeat;
    color: #fff;
}

.team-hero-content {
    max-width: 620px;
}

.team-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #a87558;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-hero .team-eyebrow {
    color: #e5c99b;
}

.team-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.1;
    color: #fff;
}

.team-hero h2 {
    max-width: 540px;
    margin: 0 0 18px;
    color: #e7c99b;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.4;
}

.team-hero p {
    max-width: 500px;
    margin-bottom: 28px;
    color: #f6eeee;
    font-size: 1rem;
    line-height: 1.8;
}

.team-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid #a51f2a;
    border-radius: 8px;
    background: #981d27;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.team-button:hover {
    background: #74151e;
    transform: translateY(-2px);
}

/* Geschäftsführung */

.team-management {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 55px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 35px;
}

.team-management-text h2 {
    margin: 0 0 24px;
    color: #702c2c;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.25;
}

.team-management-text p {
    margin-bottom: 18px;
    color: #665b56;
    font-size: 0.98rem;
    line-height: 1.9;
}

.team-management-image img {
    display: block;
    width: 100%;
    min-height: 420px;
    max-height: 560px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(65, 30, 25, 0.12);
}

/* Werte */

.team-values {
    padding: 80px 6%;
    background: #f8f4ed;
}

.team-section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.team-section-heading h2 {
    margin: 0 0 14px;
    color: #702c2c;
    font-size: clamp(2rem, 3.5vw, 2.7rem);
}

.team-section-heading p {
    color: #746761;
    line-height: 1.8;
}

.team-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
}

.team-value-card {
    padding: 30px 22px;
    border: 1px solid #eee5dc;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(65, 30, 25, 0.09);
}

.team-value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #702c2c;
    color: #fff;
    font-size: 1.8rem;
}

.team-value-card h3 {
    margin-bottom: 12px;
    color: #702c2c;
    font-size: 1.12rem;
}

.team-value-card p {
    margin: 0;
    color: #746761;
    font-size: 0.92rem;
    line-height: 1.75;
}

/* Abschluss */

.team-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1240px;
    margin: 70px auto;
    padding: 42px;
    border-radius: 16px;
    background: linear-gradient(120deg, #682321, #8d252b);
    color: #fff;
}

.team-cta .team-eyebrow {
    color: #e7c99b;
}

.team-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.team-cta p {
    margin: 0;
    color: #f2e5df;
    line-height: 1.8;
}

.team-cta .team-button {
    flex-shrink: 0;
    border-color: #fff;
    background: #fff;
    color: #702c2c;
}

.team-cta .team-button:hover {
    background: #f4e9df;
}

/* Responsive: Team Management */
@media (max-width: 1024px) {
    .team-management {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 55px 25px;
    }

    .team-management-image img {
        width: 100%;
        min-height: 280px;
        max-height: 430px;
        object-fit: cover;
    }

    .team-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-cta {
        margin: 40px 20px;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .team-hero {
        min-height: 390px;
        padding: 135px 22px 45px;
        box-sizing: border-box;
        align-items: flex-start;
        background-position: 58% center;
        background-size: cover;
    }

    .team-values {
        padding: 50px 20px;
    }

    .team-values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-value-card {
        padding: 24px 20px;
    }

    .team-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin: 30px 16px;
        padding: 26px 22px;
    }
}
/* ========================================
   Team Slideshow - Mobile Responsive
======================================== */

@media (max-width: 600px) {

    .team-slideshow {
        position: relative;
        width: calc(100% - 40px);
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 24px auto;
        border-radius: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Hide all slides by default */
    .team-slide {
        display: none;
        width: 100%;
        height: 100%;
    }

    /* Show only the active slide */
    .team-slide.active {
        display: block;
        animation: teamFade 0.6s ease;
    }

    /* Slide images */
   
    .team-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
    }

    /* Previous and next buttons */
    .slide-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background: rgba(135, 32, 32, 0.9);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.3s ease;
        z-index: 2;
    }

    .slide-btn:hover {
        background: #641717;
    }

    .slide-btn.prev {
        left: 10px;
    }

    .slide-btn.next {
        right: 10px;
    }

    /* Slide indicators */
    .slide-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        gap: 9px;
        z-index: 2;
    }

    .slide-dot {
        width: 11px;
        height: 11px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.75);
        cursor: pointer;
    }

    .slide-dot.active {
        background: #872020;
        outline: 2px solid #fff;
    }

    /* Languages */
    .team-languages {
        margin-top: 10px;
        padding: 0;
    }

    .team-languages p {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.6;
        color: #641717;
    }

    .language-flags {
        gap: 10px;
        margin-top: 10px;
    }

    .language-flags span {
        font-size: 30px;
    }

    /* Team management */
    .team-management {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 24px;
    }

    .team-management-image img {
        width: 100%;
        min-height: 220px;
        max-height: 320px;
        object-fit: cover;
    }

    /* Call to action */
    .team-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin: 25px 16px;
        padding: 24px 20px;
    }
}

/* ========================================
   Team Slideshow Animation
======================================== */

@keyframes teamFade {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Languages and Flags */
.team-languages {
    margin-top: 24px;
    padding: 0;
    align-self: flex-start;
}

.team-languages p {
    margin: 0 0 18px;
    color: #641717;
    font-size: 16px;
    line-height: 1.7;
}

.language-flags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.language-flags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    cursor: default;
    transition: transform 0.25s ease;
}

.language-flags span:hover {
    transform: translateY(-3px);
}

/* Tablet */
@media (max-width: 768px) {
    .team-slideshow {
        height: 340px;
        margin: 25px auto;
        border-radius: 12px;
    }

    .slide-btn {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .slide-btn.prev {
        left: 10px;
    }

    .slide-btn.next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .team-slideshow {
        width: calc(100% - 40px);
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 24px auto;
        border-radius: 10px;
    }
}

    .team-slide img {
        object-fit: cover;
        object-position: center;
    }

    .slide-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .slide-btn.prev {
        left: 10px;
    }

    .slide-btn.next {
        right: 10px;
    }

    .slide-dots {
        bottom: 12px;
        gap: 9px;
    }
 .language-flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.language-flags img {
    display: block;
    width: 34px;
    height: 24px;
    object-fit: contain;
}


/* Very small phones */
@media (max-width: 380px) {
    .team-slideshow {
        width: calc(100% - 32px);
    }

    .team-languages p {
        font-size: 13px;
    }

    .language-flags {
        gap: 8px;
    }

    .language-flags span {
        font-size: 27px;
    }
}

/* =========================================
   WEITERE DIENSTLEISTUNGEN
========================================= */

.partner-services {
    background: #f8f5f1;
    padding-top: 65px;
    padding-bottom: 70px;
}

.partner-services .section-heading {
    max-width: 500px;
    margin: 0 auto 35px;
}

.partner-services .section-heading h2 {
    margin-bottom: 14px;
}

/* Karten-Layout */
.partner-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
    align-items: stretch;
}

/* Einzelne Karte */
.partner-service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eee5df;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(65, 35, 28, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(65, 35, 28, 0.11);
}

/* Kartenbilder */
.partner-service-image {
    width: 100%;
    height: 175px;
    overflow: hidden;
    background: #eee8e2;
}

.partner-service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.partner-service-card:hover .partner-service-image img {
    transform: scale(1.03);
}

/* Karteninhalt */
.partner-service-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 18px 20px 22px;
}

/* Nummer */
.partner-service-number {
    display: inline-block;
    margin-bottom: 9px;
    color: #872020;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* Überschrift */
.partner-service-content h3 {
    margin: 0 0 10px;
    color: #702020;
    font-size: 1.08rem;
    line-height: 1.4;
}

/* Beschreibung */
.partner-service-content p {
    margin: 0 0 18px;
    color: #665d58;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Mehr erfahren */
.partner-service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #872020;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #872020;
    padding-bottom: 5px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.partner-service-link:hover {
    color: #a34a3d;
    gap: 14px;
}

.partner-service-link span {
    font-size: 1rem;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
    .partner-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        max-width: 760px;
    }

    .partner-service-image {
        height: 185px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .partner-services {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .partner-services .section-heading {
        margin-bottom: 28px;
    }

    .partner-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 420px;
    }

    .partner-service-image {
        height: 200px;
    }

    .partner-service-content {
        padding: 18px 20px 22px;
    }

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

    .partner-service-content p {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
}


/* مرتب‌سازی بخش خدمات اضافی GRATIA */
.partner-services {
    padding-top: 65px;
    padding-bottom: 70px;
}

.partner-services .section-header {
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
}

.partner-services .section-header h2 {
    max-width: 600px;
    margin: 12px auto 16px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.2;
}

.partner-services .section-header p {
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.partner-services-grid {
    max-width: 1050px;
    margin: 0 auto;
    gap: 20px;
}

/* موبایل و تبلت */
@media (max-width: 768px) {
    .partner-services {
        padding-top: 45px;
        padding-bottom: 50px;
    }

    .partner-services .section-header {
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .partner-services .section-header h2 {
        font-size: 30px;
    }

    .partner-services-grid {
        gap: 16px;
    }
}


/* ==========================================
   GRATIA – PARTNER SERVICES
   Abstände sauber und einheitlich
========================================== */

.partner-services {
    padding-top: 45px;
    padding-bottom: 65px;
}

/* Überschrift und Beschreibung */
.partner-services .section-heading,
.partner-services .section-header {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 24px;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}

.partner-services .section-heading h2,
.partner-services .section-header h2 {
    max-width: 600px;
    margin: 0 auto 14px;
    line-height: 1.3;
}

.partner-services .section-heading p,
.partner-services .section-header p {
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Karten etwas weiter von der Beschreibung entfernen */
.partner-services .partner-services-grid {
    width: calc(100% - 40px);
    max-width: 1050px;
    margin: 0 auto;
    gap: 24px;
    box-sizing: border-box;
}

/* Einheitliche Kartenhöhe */
.partner-services .partner-service-card {
    height: 100%;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1000px) {
    .partner-services .partner-services-grid {
        max-width: 760px;
        gap: 20px;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .partner-services {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .partner-services .section-heading,
    .partner-services .section-header {
        margin-bottom: 22px;
    }

    .partner-services .partner-services-grid {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* Dropdown für Leistungen */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 15px;
}

.dropdown-menu,
.submenu-menu {
    display: none;
    position: absolute;
    min-width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-menu {
    top: 100%;
    left: 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    border: none;
    background: transparent;
    cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: #f8eeee;
    color: #872020;
}

/* Untermenü */
.submenu-dropdown {
    position: relative;
}

.submenu-menu {
    top: 0;
    left: 100%;
}

@media (min-width: 769px) {
    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .submenu-dropdown:hover > .submenu-menu,
    .submenu-dropdown:focus-within > .submenu-menu {
        display: block;
    }
}

/* Mobile: Dropdown per Touch öffnen */
@media (max-width: 768px) {
    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-menu,
    .submenu-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 12px;
    }

    .nav-dropdown.is-open > .dropdown-menu,
    .submenu-dropdown.is-open > .submenu-menu {
        display: block;
    }

    .dropdown-toggle,
    .submenu-toggle {
        text-align: left;
    }
}


/* Footer: Weitere Leistungen */
.footer-services-dropdown {
    width: auto;
    max-width: none;
    margin: 0;
}

.footer-services-toggle {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;
    color: inherit;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;

    cursor: pointer;
}

.footer-services-arrow {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-services-dropdown.is-open .footer-services-arrow {
    transform: rotate(180deg);
}

.footer-services-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    margin: 0;
    padding: 6px 0 4px;
}

.footer-services-dropdown.is-open .footer-services-links {
    display: flex;
}

.footer-services-links a {
    display: inline-block;
    padding: 0;
    margin: 0;

    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-decoration: none;
}

.footer-services-links a:hover {
    color: #e7cda5;
}

/* Weitere Leistungen etwas nach links verschieben */
footer .footer-services-dropdown {
    margin-left: -12px;
}

footer .footer-services-toggle {
    padding-left: 0;
}


/* ==========================================
   GRATIA – KONTAKTSEITE
   ZENTRIERTE UND KOMPAKTE KARTEN
========================================== */

/* Gesamten Kontaktbereich zentrieren */
.kontakt-page .contact-section {
    padding: 50px 0 80px;
    background: #f8f5ef;
}

.kontakt-page .contact-section > .container {
    width: 100%;
    max-width: 1040px;
    padding: 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Formular und Kontaktkarten */
.kontakt-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

/* Formular-Karte */
.kontakt-page .contact-form-box {
    width: 100%;
    min-width: 0;
    padding: 26px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(40, 20, 15, 0.05);
}

/* Formularfelder */
.kontakt-page .contact-form-box .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kontakt-page .contact-form-box .form-group {
    min-width: 0;
}

.kontakt-page .contact-form-box input:not([type="checkbox"]),
.kontakt-page .contact-form-box textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Rechte Spalte */
.kontakt-page .contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Einheitliche, kompaktere Kontaktkarten */
.kontakt-page .contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(40, 20, 15, 0.04);
}

.kontakt-page .contact-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontakt-page .contact-card > div:last-child {
    min-width: 0;
}

.kontakt-page .contact-card p,
.kontakt-page .contact-card small {
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 900px) {
    .kontakt-page .contact-section > .container {
        max-width: 720px;
        padding: 0 20px;
    }

    .kontakt-page .contact-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .kontakt-page .contact-form-box {
        height: auto;
    }
}

/* Smartphone */
@media (max-width: 560px) {
    .kontakt-page .contact-section {
        padding: 32px 0 50px;
    }

    .kontakt-page .contact-section > .container {
        padding: 0 16px;
    }

    .kontakt-page .contact-form-box {
        padding: 20px 16px;
    }

    .kontakt-page .contact-form-box .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kontakt-page .contact-card {
        min-height: 95px;
        padding: 16px;
        gap: 12px;
    }

    .kontakt-page .contact-card-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}


/* ==========================================
   GRATIA KONTAKT – ZWEI SPALTEN ZENTRIEREN
========================================== */

.kontakt-page .contact-section > .container {
    width: 90% !important;
    max-width: 1040px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Beide Spalten gemeinsam kleiner und mittig */
.kontakt-page .contact-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
    width: 90% !important;
    margin: 0 auto !important;
}

/* Linke Karte */
.kontakt-page .contact-form-box {
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

/* Rechte Karten */
.kontakt-page .contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.kontakt-page .contact-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

/* Eingabefelder passend zur linken Karte */
.kontakt-page .contact-form-box .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kontakt-page .contact-form-box .form-group {
    min-width: 0;
}

.kontakt-page .contact-form-box input:not([type="checkbox"]),
.kontakt-page .contact-form-box textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 800px) {
    .kontakt-page .contact-section > .container {
        max-width: 650px !important;
        padding: 0 16px !important;
    }

    .kontakt-page .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Smartphone */
@media (max-width: 560px) {
    .kontakt-page .contact-form-box {
        padding: 18px !important;
    }

    .kontakt-page .contact-form-box .form-row {
        grid-template-columns: 1fr;
    }

    .kontakt-page .contact-card {
        min-height: 90px !important;
        padding: 16px !important;
    }
}


/* ==========================================
   KONTAKT – STANDORT UND FAQ
========================================== */

.kontakt-page .kontakt-content-container {
    width: 90%;
    max-width: 10150px;
    padding: 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.kontakt-page .kontakt-location-section {
    padding: 0 0 34px;
    background: #f8f5ef;
}

.kontakt-page .kontakt-location-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(40, 20, 15, 0.04);
}

.kontakt-page .kontakt-section-heading {
    margin-bottom: 22px;
}

.kontakt-page .kontakt-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #872020;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.kontakt-page .kontakt-section-heading h2,
.kontakt-page .kontakt-faq-card h2 {
    margin: 0 0 10px;
    color: #872020;
    font-size: 28px;
    line-height: 1.3;
}

.kontakt-page .kontakt-section-heading p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.kontakt-page .kontakt-map-wrapper {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    background: #eee8dc;
}

.kontakt-page .kontakt-map-wrapper iframe {
    display: block;
    width: 90%;
    height: 100%;
    border: 0;
}

.kontakt-page .kontakt-map-address {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 235px;
    max-width: calc(100% - 36px);
    padding: 20px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    box-sizing: border-box;
}

.kontakt-page .kontakt-map-pin {
    color: #872020;
    font-size: 25px;
}

.kontakt-page .kontakt-map-address h3 {
    margin: 8px 0;
    color: #872020;
    font-size: 16px;
}

.kontakt-page .kontakt-map-address p {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.kontakt-page .kontakt-map-address a {
    color: #872020;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.kontakt-page .kontakt-map-address a:hover {
    text-decoration: underline;
}

/* FAQ und Bild */

.kontakt-page .kontakt-faq-section {
    padding: 0 0 70px;
    background: #f8f5ef;
}

.kontakt-page .kontakt-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: stretch;
    gap: 24px;
}

.kontakt-page .kontakt-faq-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(40, 20, 15, 0.04);
}

.kontakt-page .kontakt-faq-card h2 {
    margin-bottom: 22px;
}

.kontakt-page .kontakt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kontakt-page .kontakt-faq-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.kontakt-page .kontakt-faq-item[open] {
    border-color: #d5b4b0;
}

.kontakt-page .kontakt-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 18px;
    color: #383333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.kontakt-page .kontakt-faq-item summary::-webkit-details-marker {
    display: none;
}

.kontakt-page .faq-chevron {
    flex-shrink: 0;
    color: #872020;
    font-size: 21px;
    transition: transform 0.2s ease;
}

.kontakt-page .kontakt-faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.kontakt-page .kontakt-faq-answer {
    padding: 0 18px 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.kontakt-page .kontakt-faq-answer a {
    color: #872020;
    font-weight: 600;
}

/* Bild rechts neben den Fragen */

.kontakt-page .kontakt-faq-image {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 18px;
    background: #e7e0d5;
}

.kontakt-page .kontakt-faq-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.kontakt-page .kontakt-faq-image-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 35px 22px 22px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(45, 12, 10, 0.75)
    );
}

.kontakt-page .kontakt-faq-image-caption span {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.kontakt-page .kontakt-faq-image-caption p {
    margin: 7px 0 0;
    font-size: 20px;
    font-weight: 600;
}

/* Tablet */

@media (max-width: 800px) {
    .kontakt-page .kontakt-faq-layout {
        grid-template-columns: 1fr;
    }

    .kontakt-page .kontakt-faq-image {
        min-height: 280px;
    }

    .kontakt-page .kontakt-faq-image img {
        min-height: 280px;
        max-height: 360px;
    }
}

/* Smartphone */

@media (max-width: 560px) {
    .kontakt-page .kontakt-content-container {
        padding: 0 16px;
    }

    .kontakt-page .kontakt-location-card,
    .kontakt-page .kontakt-faq-card {
        padding: 20px 16px;
    }

    .kontakt-page .kontakt-section-heading h2,
    .kontakt-page .kontakt-faq-card h2 {
        font-size: 24px;
    }

    .kontakt-page .kontakt-map-wrapper {
        height: 340px;
    }

    .kontakt-page .kontakt-map-address {
        top: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }

    .kontakt-page .kontakt-faq-image,
    .kontakt-page .kontakt-faq-image img {
        min-height: 250px;
    }
}


/* Kontakt Button – größer und eleganter */
.main-nav a.nav-link[href="kontakt.html"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    min-height: 46px;
    padding: 12px 28px;

    background-color: #872020;
    color: #ffffff !important;

    border: 1px solid #872020;
    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    box-sizing: border-box;
    transition: background-color 0.25s ease,
                box-shadow 0.25s ease;
}

.main-nav a.nav-link[href="kontakt.html"]:hover {
    background-color: #6f1919;
    border-color: #6f1919;
    box-shadow: 0 4px 12px rgba(135, 32, 32, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav a.nav-link[href="kontakt.html"] {
        min-width: 150px;
        min-height: 48px;
        padding: 13px 28px;
        margin: 12px auto;
        font-size: 16px;
        border-radius: 30px;
    }
}


/* =========================================
   KONTAKT BUTTON – DESKTOP & MOBILE
========================================= */

.main-nav a.nav-link[href="kontakt.html"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: #872020;
    color: #ffffff !important;
    border: 1px solid #872020;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.main-nav a.nav-link[href="kontakt.html"]:hover {
    background-color: #6f1919;
    border-color: #6f1919;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(135, 32, 32, 0.18);
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav a.nav-link[href="kontakt.html"] {
        display: flex;
        width: fit-content;
        max-width: 100%;
        padding: 11px 24px;
        margin: 12px auto;
        border-radius: 30px;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .main-nav a.nav-link[href="kontakt.html"]:hover {
        transform: none;
        box-shadow: none;
    }
}


/* =========================================================
   GRATIA — UNIFIED SOCIAL BAR, HEADER & NAVIGATION
   Compatible with the existing main.js
   ========================================================= */

:root {
    --gratia-header-height: 80px;
    --gratia-social-height: 36px;
    --gratia-primary: #872020;
    --gratia-primary-dark: #681919;
    --gratia-header-bg: #ffffff;
    --gratia-header-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   1. SOCIAL BAR
   ========================================================= */

.social-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: var(--gratia-social-height);
    min-height: var(--gratia-social-height);

    background: var(--gratia-primary-dark);
    z-index: 1100;

    transform: translateY(0);
    opacity: 1;
    visibility: visible;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.social-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.social-bar-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.social-bar-left {
    min-width: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.social-link {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.14);
    opacity: 0.9;
}

.social-link svg {
    display: block;
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   2. MAIN HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: var(--gratia-social-height);
    left: 0;
    right: 0;

    width: 100%;
    height: var(--gratia-header-height);

    background: var(--gratia-header-bg);
    z-index: 1000;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);

    transition:
        top 0.3s ease,
        box-shadow 0.3s ease;
}

/* main.js adds this class when scrolling down */

.site-header.social-hidden {
    top: 0;
    box-shadow: var(--gratia-header-shadow);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: 155px;
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* =========================================================
   3. DESKTOP NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;

    min-width: 0;
}

.main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 10px;

    color: #342b29;
    text-decoration: none;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--gratia-primary);
}

/* =========================================================
   4. MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;
    padding: 0;

    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    border: 1px solid #e8e1de;
    border-radius: 8px;
    background: #ffffff;
    color: var(--gratia-primary);

    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle:hover {
    background: #faf5f3;
}

/* =========================================================
   5. TABLET & MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 850px) {

    :root {
        --gratia-header-height: 75px;
    }

    .social-bar-inner {
        width: calc(100% - 24px);
    }

    .social-bar-left {
        display: none;
    }

    .social-links {
        margin-left: auto;
        gap: 6px;
    }

    .social-link {
        width: 25px;
        height: 25px;
    }

    .social-link svg {
        width: 15px;
        height: 15px;
    }

    .header-inner {
        width: calc(100% - 30px);
        gap: 12px;
    }

    .site-logo {
        width: 145px;
        height: 58px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        max-height: calc(100vh - 111px);
        max-height: calc(100dvh - 111px);
        overflow-y: auto;
        overscroll-behavior: contain;

        padding: 12px 18px 20px;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;

        background: #ffffff;
        border-top: 1px solid #f0e9e6;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);

        z-index: 1001;
    }

    /* Exact class toggled by main.js */

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

    .main-nav .nav-link {
        display: flex;
        width: 100%;
        min-height: 46px;

        align-items: center;
        justify-content: space-between;

        padding: 12px 8px;

        white-space: normal;
        text-align: left;

        border-bottom: 1px solid #f0e9e6;
    }

    .main-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Preserve touch-based dropdown behavior */

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-menu,
    .submenu-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;

        box-shadow: none;
        border-radius: 0;
    }

    .nav-dropdown.is-open > .dropdown-menu,
    .submenu-dropdown.is-open > .submenu-menu {
        display: block;
    }
}

/* =========================================================
   6. SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 380px) {

    .header-inner {
        width: calc(100% - 24px);
        gap: 8px;
    }

    .site-logo {
        width: 125px;
        height: 52px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .main-nav {
        padding-inline: 12px;
    }

    .social-bar-inner {
        width: calc(100% - 16px);
    }
}


/* Fix team slideshow image cropping on mobile */
@media (max-width: 600px) {
    .team-slideshow {
        height: auto !important;
        aspect-ratio: auto !important;
        overflow: hidden;
    }

    .team-slide {
        height: auto !important;
    }

    .team-slide.active {
        height: auto !important;
    }

    .team-slide img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center top !important;
    }
}