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

/* ======================================
   Basis
====================================== */
:root {
    --color-primary: #e0002a;        /* GTÜ-Rot */
    --color-primary-soft: #ff4b63;
    --color-bg-page: #eef0f5;
    --color-text-main: #222429;
    --color-text-muted: #6b6f7c;
    --color-border-soft: #dde0e9;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px rgba(15, 19, 40, 0.16);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Fira Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #f3f4f8;                /* helle Schrift auf dunkel */
    background: #26282e;           /* Anthrazit für die ganze Seite */
    -webkit-font-smoothing: antialiased;
}


/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Überschriften */
h1, h2, h3 {
    font-family: "Fira Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem 0;
    color: var(--color-text-main);
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ======================================
   Buttons
====================================== */
.button-primary,
.button-link,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        background 0.15s ease-out,
        color 0.15s ease-out;
}

.button-primary,
.button-link {
    background: linear-gradient(135deg, var(--color-primary) 0, var(--color-primary-soft) 100%);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(224, 0, 42, 0.45);
}
.button-primary:hover,
.button-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(224, 0, 42, 0.6);
}

.button-secondary {
    background: #ffffff;
    color: var(--color-text-main);
    border: 1px solid var(--color-border-soft);
    box-shadow: 0 10px 24px rgba(11, 15, 35, 0.06);
}
.button-secondary:hover {
    background: #f6f7fb;
}

/* ======================================
   Header – weiß, fix, Shrink beim Scrollen
====================================== */

.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(221,224,233,0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition:
        padding 0.25s ease-out,
        box-shadow 0.25s ease-out;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

/* Logos */
.logo-owner img {
    height: 96px;
    width: auto;
    display: block;
}
.logo-gtue img {
    height: 60px;
    width: auto;
    display: block;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Shrink beim Scrollen – nur Höhe/Logos */
.site-header.header-shrink {
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}
.site-header.header-shrink .header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.site-header.header-shrink .logo-owner img {
    height: 60px;
}
.site-header.header-shrink .logo-gtue img {
    height: 48px;
}

/* ======================================
   Navigation – Desktop
====================================== */

.main-nav {
    flex: 1;
    margin-left: 2rem;
}
.nav-level-1 {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-item > a {
    position: relative;
    font-size: 1.02rem;
    font-weight: 500;
    color: #333741;
    padding: 0.7rem 0;
    letter-spacing: 0.02em;
    font-family: "Fira Sans", sans-serif;
}

/* Unterstreichung beim Hover */
.nav-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e0002a, #ff4b63);
    transition: width 0.2s ease-out;
}
.nav-item > a:hover::after {
    width: 100%;
}
.nav-item > a:hover {
    color: #111;
}

/* Dropdown-Kästen unter dem Header */
.nav-item.has-sub {
    position: relative;
}
.nav-level-2 {
    list-style: none;
    margin: 0;
    padding: 1rem 1.1rem;
    position: absolute;
    top: 100%;
    left: 0;

    margin-top: 24px;  /* Abstand zum Header */

    min-width: 260px;

    background: #ffffff;        /* gleiche Farbe wie Header */

    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;

    box-shadow: 0 12px 28px rgba(10,10,20,0.18);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    transform: translateY(-4px);
}

/* Unsichtbare Brücke zwischen Menüpunkt und Dropdown */
.nav-item.has-sub::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 24px;   /* genau wie margin-top oben */
}

.nav-item.has-sub:hover > .nav-level-2 {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-level-2 li + li {
    margin-top: 0.2rem;
}
.nav-level-2 li a {
    display: block;
    padding: 0.55rem 0.3rem;
    font-size: 0.95rem;
    color: #333741;
    border-radius: 0;
}

.nav-level-2 li a:hover {
    background: #ffffff;
}



/* Burger / Mobile-Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    color: #333741;
}

/* ======================================
   Mobile-Navigation
====================================== */

.mobile-nav {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-soft);
}
.mobile-nav.open {
    display: block;
}

.mobile-nav-level-1,
.mobile-nav-level-2 {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-item {
    border-top: 1px solid #eceef4;
}

.mobile-nav a,
.mobile-sub-toggle {
    display: block;
    padding: 0.95rem 1.25rem;
    font-size: 0.98rem;
    font-family: "Fira Sans", sans-serif;
    color: #262933;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.mobile-sub-toggle {
    cursor: pointer;
}
.mobile-nav-level-2 {
    display: none;
    background: #f5f6fb;
}
.mobile-item.open > .mobile-nav-level-2 {
    display: block;
}

/* ======================================
   Hero – Bild bleibt stehen, Textbox + Button zentriert
====================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-start {
    background: url("/assets/img/hero-start.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-oldtimer {
    background: url("/assets/img/hero-oldtimer.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-19-2 {
    background: url("/assets/img/hero-19-2.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-21 {
    background: url("/assets/img/hero-21.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-hu {
    background: url("/assets/img/hero-hu-uma.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-feinstaub {
    background: url("/assets/img/hero-feinstaub.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-aenderung {
    background: url("/assets/img/hero-aenderung.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-gas {
    background: url("/assets/img/hero-gas.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-sp {
    background: url("/assets/img/hero-sp.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 18, 0.80) 0%,
            rgba(5, 8, 18, 0.55) 45%,
            rgba(5, 8, 18, 0.30) 100%
        );
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.8rem;
}
.hero-textbox {
    max-width: 620px;
    background: rgba(10, 12, 26, 0.75);
    border-radius: 24px;
    padding: 2rem 2.2rem;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.hero-textbox h1 {
    color: #ffffff;
}
.hero-textbox p {
    margin-top: 0.4rem;
    margin-bottom: 1.4rem;
    color: #f3f4f8;
}

/* Button in der Box mittig */
.hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}

/* ======================================
   Main
====================================== */

.page-main {
    padding: 2.8rem 1.2rem 3rem;
}
.page-section {
    margin-bottom: 2.4rem;
}
.page-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ======================================
   LEISTUNGEN – dunkler Bereich, ohne Kästchen
====================================== */

/* leichter Überlapp-Effekt ins Bild */
.page-section-leistungen {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Überschrift + Einleitungs-Text */
.page-section-leistungen h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.page-section-leistungen .lead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.4rem;
    color: #d3d5da;
    font-size: 1.03rem;
}

/* Drei Spalten – OHNE Box-Hintergrund */
.page-section-leistungen .columns-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;              /* mehr Abstand zwischen den Spalten */
    align-items: stretch;
}

/* Jede Leistung: Titel, Text, Link/Buttons */
.page-section-leistungen .columns-3 article {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 0.5rem;
}

.page-section-leistungen .columns-3 article h3 {
    font-size: 1.25rem;       /* etwas größer */
    margin-bottom: 1.1rem;    /* mehr Abstand nach unten */
    color: #ffffff;
}

.page-section-leistungen .columns-3 article p {
    margin: 0;
    color: #d0d2d7;
    font-size: 0.97rem;
    line-height: 1.85;        /* mehr Zeilenabstand */
    margin-bottom: 2.0rem;    /* mehr Luft zum Link */
}

/* Link/Buttons unten überall gleiche Ebene */
.page-section-leistungen .columns-3 article a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

/* Falls du .button-link etc. verwendest */
.page-section-leistungen .button-link,
.page-section-leistungen .button-primary,
.page-section-leistungen .button-secondary {
    margin-top: auto;
}

/* ======================================
   Kontakt – Karte
====================================== */

.page-section-kontakt .page-section-inner {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2.4rem 2.8rem 2.6rem;  /* etwas großzügiger */
}
.page-section-inner-kontakt {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* linke Spalte etwas breiter */
    gap: 2.6rem;                      /* mehr Abstand zwischen Spalten */
}
.page-section-inner-kontakt p {
    color: #4b5466;
    line-height: 1.8;                 /* ruhiger lesbar */
}

/* Kontakt-Formular im Kontakt-Kasten */
.page-section-kontakt .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.page-section-kontakt .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-section-kontakt .contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222737;
}

.page-section-kontakt .contact-form input,
.page-section-kontakt .contact-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.page-section-kontakt .contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.page-section-kontakt .contact-form input:focus,
.page-section-kontakt .contact-form textarea:focus {
    border-color: var(--color-primary-soft);
    box-shadow: 0 0 0 1px rgba(224,0,42,0.16);
}

.page-section-kontakt .button-primary {
    align-self: flex-start;
    margin-top: 0.4rem;
}

/* ======================================
   Footer (Standard-Site-Footer)
====================================== */

.site-footer {
    padding: 2rem 1.2rem 1.6rem;
    background: #cc0025;
    border-top: 0px solid var(--color-border-soft);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}
.footer-inner a {
    color: #ffffff;
    font-size: 0.85rem;
}
.footer-left {
    font-size: 0.85rem;
    color: #ffffff;
}

/* ======================================
   Responsive
====================================== */

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .page-section-leistungen .columns-3 {
        grid-template-columns: 1fr 1fr;
    }

    .page-section-inner-kontakt {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .header-inner {
        padding-inline: 1rem;
    }

    .logo-owner img {
        height: 56px;
    }
    .site-header.header-shrink .logo-owner img {
        height: 48px;
    }
    .logo-gtue img {
        height: 44px;
    }
    .site-header.header-shrink .logo-gtue img {
        height: 38px;
    }

    .hero {
        min-height: 90vh;
    }
    .hero-inner {
        padding: 0 1.2rem;
    }
    .hero-textbox {
        padding: 1.6rem 1.6rem;
    }

    .page-main {
        padding: 2.2rem 1.2rem 2.6rem;
    }

    .page-section-leistungen {
        margin-top: -10px;
        padding: 3rem 0 3.2rem;
    }

    .page-section-leistungen .columns-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-section-kontakt .page-section-inner {
        padding: 2rem 1.6rem 2.2rem;
    }
    .page-section-inner-kontakt {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

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

/********************************************
 * Überschriften auf Unterseiten lesbar machen
 ********************************************/

/* Standard: alle Überschriften im Inhaltsbereich hell */
.page-main h1,
.page-main h2,
.page-main h3 {
    color: #f3f4f8;
}

/* Bereiche mit weißem Hintergrund – dort dunkel */
.page-section-kontakt h1,
.page-section-kontakt h2,
.page-section-kontakt h3,
.site-footer h1,
.site-footer h2,
.site-footer h3 {
    color: var(--color-text-main);
}

/*******************************************
 * GTÜ-ROTER PREMIUM-FOOTER (optionaler gtue-footer)
 *******************************************/

.gtue-footer {
    background: #cc0025;
    color: #ffffff;
    padding: 3rem 1.7rem 1.4rem;
    margin-top: 4rem;
    border-top: 4px solid #DA1F3D;
    box-shadow: 0 -10px 35px rgba(0,0,0,0.22);
}

.gtue-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

.gtue-footer-col h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-transform: none;
}

.gtue-footer-col p,
.gtue-footer-col a {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #ffffffc9;
}

.gtue-footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gtue-footer-logo img {
    width: 120px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}
.gtue-footer-logo img:hover {
    opacity: 1;
}

.gtue-footer-bottom {
    text-align: center;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 0px solid rgba(255,255,255,0.35);
    font-size: 0.9rem;
    color: #ffffffb8;
}

@media (max-width: 900px) {
    .gtue-footer-inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .gtue-footer-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .gtue-footer-logo {
        margin-top: 0.8rem;
    }
}
/********************************************
 * LEISTUNGEN – Flip-Cards
 ********************************************/

.page-section-leistungen .columns-3 {
    align-items: stretch;
}

.page-section-leistungen .columns-3 .flip-card {
    display: block;
    padding: 0;
    perspective: 1200px;
    min-height: 260px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

/* nur auf Desktop beim Hover drehen */
@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-face {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(8, 13, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    backface-visibility: hidden;
}

.flip-card-front {
    background: radial-gradient(circle at top left,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(8, 13, 28, 0.98) 55%,
        rgba(3, 5, 15, 1) 100%);
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-face h3 {
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    color: #ffffff;
}

.flip-card-face p {
    margin: 0 0 1.3rem;
    color: #d0d2d7;
    font-size: 0.95rem;
    line-height: 1.7;
}

.flip-card-more {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ff4666;
}

.flip-card-back .button-link,
.flip-card-back .button-primary,
.flip-card-back .button-secondary {
    margin-top: auto;
}

@media (max-width: 768px) {
    .page-section-leistungen .columns-3 .flip-card {
        min-height: 220px;
    }
}
/********************************************
 * FIX: Mehr Abstand unter den 3 Leistungskästen
 ********************************************/

/* Abstand NACH dem Leistungsbereich stark vergrößern */
.page-section-leistungen {
    padding-bottom: 6rem !important;  /* vorher zu klein */
    margin-bottom: 4rem !important;   /* zusätzlich Platz */
}

/* Jede Flip-Card höher machen, damit Rückseite nicht in Kontakt rutscht */
.page-section-leistungen .flip-card {
    min-height: 480px !important;     /* vorher zu niedrig */
}

/* Falls die Rückseite sehr viel Text hat → noch mehr Höhe */
.page-section-leistungen .flip-card-inner {
    min-height: 380px !important;
}
/********************************************
 * Flip-Cards – Vorderseite in GTÜ-Rot
 ********************************************/

/* Vorderseite: GTÜ-Rot, heller Verlauf, moderner Look */
.page-section-leistungen .flip-card-front {
    background: linear-gradient(
        to bottom right,
        #e0002a 0%,      /* GTÜ-Rot */
        #ff4c66 70%,
        #ff7589 100%
    ) !important;
    border-top: 4px solid #b60022 !important;
    color: #ffffff !important;
}

/* Text auf der Vorderseite weiß */
.page-section-leistungen .flip-card-front h3,
.page-section-leistungen .flip-card-front p,
.page-section-leistungen .flip-card-front span {
    color: #ffffff !important;
}

/* Schatten etwas weicher, damit Rot nicht zu schwer wirkt */
.page-section-leistungen .flip-card-front {
    box-shadow: 0 12px 28px rgba(224, 0, 42, 0.35) !important;
}

/********************************************
 * FLIP-CARDS – Rote Vorderseite + ICONS
 ********************************************/

/* Rote Vorderseite */
.page-section-leistungen .flip-card-front {
    background: linear-gradient(
        145deg,
        #e0002a 0%,
        #cc0025 100%
    ) !important;
    border: none !important;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2.4rem;
}

/* Icon-Bereich */
.flip-icon img {
    width: 75px;
    height: 75px;
    filter: brightness(0) invert(1);  /* weiß machen */
    opacity: 0.92;
    margin-bottom: 1.3rem;
}

/* Überschrift */
.page-section-leistungen .flip-card-front h3 {
    font-size: 1.45rem;
    margin: 0 0 0.8rem 0;
    color: #ffffff !important;
    font-weight: 600;
}

/* kurzer Text auf Vorderseite */
.page-section-leistungen .flip-card-front p {
    color: #ffffff !important;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 90%;
    margin: 0 auto 1.4rem auto;
}

/* Schatten für 3D-Effekt */
.page-section-leistungen .flip-card-front {
    box-shadow: 0 18px 35px rgba(224, 0, 42, 0.35);
}


/********************************************
 * Flip-Cards – kleinere Überschriften + Icons links
 ********************************************/

/* ICONS linksbündig */
.flip-card-front .flip-icon {
    width: 100%;
    display: flex;
    justify-content: flex-start;  /* Icon nach links */
    margin-bottom: 1.2rem;
}

.flip-card-front .flip-icon img {
    width: 74px !important;    /* etwas kleiner */
    height: 74px !important;
    margin: 0;
}

/* ÜBERSCHRIFT etwas kleiner, besser passend */
.page-section-leistungen .flip-card-front h3 {
    font-size: 1.10rem !important;  /* vorher ~1.45rem */
    margin-bottom: 0.6rem !important;
    text-align: left !important;    /* links statt mittig */
    line-height: 1.2;
}
/* ÜBERSCHRIFT etwas kleiner, besser passend */
.page-section-leistungen .flip-card-back h3 {
    font-size: 1.0rem !important;  /* vorher ~1.45rem */
    margin-bottom: 0.6rem !important;
    text-align: left !important;    /* links statt mittig */
    line-height: 1.2;
}

/* TEXT unter der Überschrift */
.page-section-leistungen .flip-card-front p {
    text-align: left !important;    /* links statt mittig */
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem !important;
    line-height: 1.55;
    max-width: 100%;
}
/* TEXT unter der Überschrift */
.page-section-leistungen .flip-card-back p {
    text-align: left !important;    /* links statt mittig */
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem !important;
    line-height: 1.55;
    max-width: 100%;
}
/********************************************
 * RSS / News unter dem Kontakt
 ********************************************/

.page-section-rss .page-section-inner {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2.2rem 2.4rem 2.4rem;
    margin-top: 2rem;
}

.page-section-rss h2 {
    margin-bottom: 1.2rem;
}

.rss-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rss-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.9rem;
}

.rss-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rss-item-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.rss-item-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #e0002a;
    text-decoration: none;
}

.rss-item-title:hover {
    text-decoration: underline;
}

.rss-item-desc {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Mobil: etwas enger */
@media (max-width: 768px) {
    .page-section-rss .page-section-inner {
        padding: 1.8rem 1.6rem 2rem;
    }
}
/* ======================================
   GTÜ-Blog RSS-Bereich mit Bildern
====================================== */

.page-section-blogfeed {
    margin-top: 2.5rem;
}

.page-section-blogfeed .rss-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.page-section-blogfeed .rss-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 0 0 1.4rem 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e5f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bild oben */
.rss-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f3f7;
}

.rss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Textbereich */
.page-section-blogfeed .rss-item h3 {
    font-size: 1rem;
    margin: 0.9rem 1.2rem 0.2rem;
}

.page-section-blogfeed .rss-item h3 a {
    color: #111;
    text-decoration: none;
}

.page-section-blogfeed .rss-item h3 a:hover {
    color: #e0002a;
    text-decoration: underline;
}

.page-section-blogfeed .rss-date {
    font-size: 0.85rem;
    color: #7a7f8c;
    margin: 0 1.2rem 0.5rem;
}

.page-section-blogfeed .rss-item p {
    font-size: 0.9rem;
    color: #4b5466;
    line-height: 1.5;
    margin: 0 1.2rem 0.4rem;
}

/* Ganze Karte klickfreundlich, aber nicht zu groß */
.page-section-blogfeed .rss-item a {
    cursor: pointer;
}

/* Mobil: untereinander */
@media (max-width: 900px) {
    .page-section-blogfeed .rss-list {
        grid-template-columns: 1fr;
    }
}
/* ======================================
   MOBILE: Tap-to-Flip & bessere Abstände
====================================== */

/* 1) Grund: Hover-Effekt nur auf Geräten mit Maus (bereits in CSS),
   jetzt sicherstellen, dass bei Touch kein hover-transform greift. */
@media (hover: none) and (pointer: coarse) {
    /* Deaktiviere Hover-Flip (falls noch aktiv) */
    .flip-card .flip-card-inner {
        /* kein hover-based transform mehr */
        transition: transform 0.45s ease;
    }
    .flip-card:hover .flip-card-inner {
        transform: none !important;
    }
}

/* 2) Mehr Abstand unten im Leistungsbereich (wichtig, damit Rückseite nicht in Kontakt ragt) */
@media (max-width: 900px) {
    .page-section-leistungen {
        padding-bottom: 5.5rem !important;
        margin-bottom: 3.5rem !important;
    }

    /* Karten: 1-spaltig, größer, mehr Padding */
    .page-section-leistungen .columns-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .page-section-leistungen .flip-card {
        min-height: auto !important;
        height: auto;
        perspective: none; /* kein 3D-Effekt nötig */
    }

    .flip-card-inner {
        position: relative;
        transform: none !important; /* start neutral */
    }

    /* Vorder- und Rückseite werden untereinander angezeigt, bei .is-flipped wird Rückseite sichtbar */
    .flip-card-face {
        position: relative;
        inset: auto;
        border-radius: 14px;
        padding: 1.4rem;
        backface-visibility: visible;
        transform: none !important;
        box-shadow: 0 10px 22px rgba(10,14,30,0.06);
        transition: none;
    }

    /* Standard: nur die Vorderseite anzeigen (Rückseite verstecken) */
    .flip-card .flip-card-back {
        display: none;
    }

    /* Wenn Karte aktiv (auf Tap) -> zeige Rückseite unterhalb der Vorderseite */
    .flip-card.is-flipped .flip-card-back {
        display: block;
        margin-top: 0.9rem;
    }

    /* kleine Anpassung: Vorderseite als "Kachel" mit Hinweis zum Tippen */
    .page-section-leistungen .flip-card-front {
        cursor: pointer;
    }

    /* Icon/texte align */
    .page-section-leistungen .flip-card-front {
        align-items: flex-start;
        text-align: left;
    }

    .flip-card-more {
        display: inline-block;
        margin-top: 0.6rem;
        color: #e0002a;
        font-weight: 600;
    }
}
