/* ============================================================
   IRONWORK – style.css
   Industrial. Angular. Uncompromising.
   REGEL: KEINE Hex-Werte – ausschliesslich var(--color-*)
   ============================================================ */

/* === FONTS === */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--color-heading);
}

a {
    color: var(--color-cta);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

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

/* === UTILITY === */
.section-label {
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.75rem;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

.text-accent {
    color: var(--color-accent);
}

.bg-primary-section {
    background: var(--color-primary);
}

.bg-surface-section {
    background: var(--color-surface);
}

/* Diagonal clip utility */
.clip-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding-bottom: 8rem;
}

.clip-top {
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    padding-top: 8rem;
    margin-top: -4rem;
}

.clip-both {
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    padding-top: 8rem;
    padding-bottom: 8rem;
    margin-top: -4rem;
}

/* === PAGINEER OVERLAY SYSTEM ===
 * Dreischicht-Ansatz fuer maximale Lesbarkeit
 * auf jeder Hintergrundbild-Kombination
 */
.has-bg-image {
    position: relative;
    overflow: hidden;
}

.has-bg-image .bg-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.has-bg-image .bg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

/* Schicht 1: Markenfarben-Multiplikation */
.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--color-primary);
    opacity: 0.38;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Schicht 2: Direktionaler Dunkelgradient */
.has-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.52) 45%,
            rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

/* Schicht 3: Text-Shadow auf allen Textelementen im Hero */
.has-bg-image .overlay-content {
    position: relative;
    z-index: 3;
}

.has-bg-image .overlay-content h1,
.has-bg-image .overlay-content h2,
.has-bg-image .overlay-content h3,
.has-bg-image .overlay-content p,
.has-bg-image .overlay-content .section-label {
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.65);
}

.has-bg-image .overlay-content h1,
.has-bg-image .overlay-content h2 {
    color: rgb(255, 255, 255);
}

.has-bg-image .overlay-content p {
    color: rgba(255, 255, 255, 0.88);
}

/* === NAVBAR === */
.iw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header dauerhaft gefüllt — kein Transparenz-Start mehr.
   Beim Scrollen nur noch Padding-Verdichtung + stärkerer Schatten. */
.iw-header .navbar {
    background: var(--color-primary);
    padding: 1.25rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.iw-header.scrolled .navbar {
    padding: 0.6rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.iw-header .navbar-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: rgb(255, 255, 255) !important;
}

.iw-header .navbar-brand img {
    max-height: 48px;
    width: auto;
}

.iw-header .nav-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.iw-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.iw-header .nav-link:hover,
.iw-header .nav-link.active {
    color: rgb(255, 255, 255) !important;
}

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

.iw-header .navbar-toggler {
    border: 2px solid var(--color-accent);
    border-radius: 0;
    padding: 0.3rem 0.6rem;
}

.iw-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='square' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO === */
.iw-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.iw-hero .hero-eyebrow {
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.iw-hero .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2.5rem;
    height: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.iw-hero h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.iw-hero .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.iw-hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-cta {
    background-color: var(--color-cta);
    color: var(--color-cta-text);
    border: none;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.25rem;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    transition: left 0.3s ease;
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:hover {
    background-color: var(--color-primary);
    color: var(--color-cta-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-outline-light-iw {
    background: transparent;
    color: rgb(255, 255, 255);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.25rem;
    transition: all 0.25s ease;
}

.btn-outline-light-iw:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
}

.btn-outline-primary-iw {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.25rem;
    transition: all 0.25s ease;
}

.btn-outline-primary-iw:hover {
    background: var(--color-primary);
    color: rgb(255, 255, 255);
}

/* === INTRO SECTION === */
.iw-intro {
    padding: 5rem 0;
    background: var(--color-background);
}

.iw-intro .intro-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--color-border);
    user-select: none;
    margin-bottom: -1rem;
}

.iw-intro h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
}

.iw-intro p {
    font-size: 1.05rem;
    color: var(--color-text);
}

/* === FEATURES / LEISTUNGEN-TEASER === */
.iw-features {
    padding: 0 0 6rem;
    background: var(--color-background);
}

.iw-feature-card {
    background: var(--color-surface);
    border-top: 4px solid var(--color-border);
    padding: 2rem 1.75rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
    height: 100%;
}

.iw-feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.iw-feature-card .feature-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.iw-feature-card h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.iw-feature-card p {
    font-size: 0.92rem;
    color: var(--color-text);
    margin: 0;
}

/* Leistungen: Bild oben in der Karte.
   Desktop: randlos ueber die volle Kartenbreite; der obere 4px-Rahmen
   (border-top der Karte) bleibt darueber sichtbar – wie in der Mobile-View. */
.iw-service-card-img {
    display: block;
    height: 200px;
    object-fit: cover;
    /* max-width:none hebt die globale img{max-width:100%}-Regel auf,
       sonst wird die Breite gekappt und rechts bleibt eine Luecke. */
    width: calc(100% + 3.5rem);
    max-width: none;
    margin: 0rem -1.75rem 1.5rem;
}

/* Mobile & Tablet: Bild zentriert innerhalb der Karte – kein randloser
   Ueberlauf, damit die obere Rahmenlinie sauber ueber dem Bild bleibt. */
@media (max-width: 991.98px) {
    .iw-service-card-img {
        width: 100%;
        margin: 0 auto 1.5rem;
    }
}

/* === SERVICES SECTION === */
.iw-services {
    padding: 6rem 0;
    background: var(--color-surface);
}

.iw-service-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: padding-left 0.25s ease;
}

.iw-service-item:hover {
    padding-left: 0.75rem;
}

.iw-service-item:last-child {
    border-bottom: none;
}

.iw-service-item .service-index {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--color-accent);
    line-height: 1;
    min-width: 3rem;
}

.iw-service-item h3 {
    font-size: 1.6rem;
    color: var(--color-heading);
    margin-bottom: 0.4rem;
}

.iw-service-item p {
    font-size: 0.92rem;
    color: var(--color-text);
    margin: 0;
}

.iw-service-item .service-link {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* === TEASER / CTA-BANNER === */
.iw-cta-banner {
    min-height: 480px;
    display: flex;
    align-items: center;
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    padding: 8rem 0;
    margin-bottom: 4rem;
}

.iw-cta-banner h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.25rem;
}

/* === TEAM (Boxen: Bild links, Text rechts – Aufbau wie Flux) ===
   2 pro Reihe (50%), zentriert; ungerade Anzahl -> letzte Box mittig. */
.iw-team-rows {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1160px;
    margin-inline: auto;
}

.iw-team-row {
    /* je 50% (minus halber Gap); flex-grow:0 -> einzelne Box bleibt 50% breit
       und wird durch justify-content:center mittig gesetzt. */
    flex: 0 1 calc(50% - 0.75rem);
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    background: var(--color-surface);
    border-top: 4px solid var(--color-border);
    padding: 1.5rem;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.iw-team-row:hover {
    border-color: var(--color-accent);
    background: var(--color-background);
}

/* Grid-Items duerfen unter ihre min-content-Breite schrumpfen (lange Woerter) */
.iw-team-row-img,
.iw-team-row-body {
    min-width: 0;
}

.iw-team-row-img {
    overflow: hidden;
}

.iw-team-row-img img,
.iw-team-row-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.iw-team-row-placeholder {
    background: var(--color-surface);
}

.iw-team-row-body h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.15rem;
}

.iw-team-row-body .position {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.iw-team-row-body p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0;
}

/* Startseiten-Teaser: max. 1/3 Breite (3 pro Reihe), kompakteres Bild. */
@media (min-width: 992px) {
    .iw-team-rows--thirds .iw-team-row {
        flex: 0 1 calc(33.333% - 1rem);
        grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
        gap: 1rem;
        padding: 1.25rem;
    }
}

/* Tablet & kleiner: Boxen einspaltig (volle Breite), Text neben dem Bild. */
@media (max-width: 991.98px) {
    .iw-team-row {
        flex-basis: 100%;
    }
}

/* Handy: Bild ueber den Text stapeln, Bild nicht auf volle Breite ziehen. */
@media (max-width: 575.98px) {
    .iw-team-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        justify-items: start;
    }

    .iw-team-row-img {
        width: 60%;
        max-width: 200px;
        justify-self: center;
    }
}

/* === REFERENZEN (Zeilen-Layout – Aufbau wie Hammer) ===
   Jede Referenz = eine volle Breite-Box: Bild links, Text rechts,
   Boxen stapeln untereinander. */
.iw-ref-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iw-ref-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    background: var(--color-surface);
    border-top: 4px solid var(--color-border);
    padding: 1.75rem;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.iw-ref-row:hover {
    border-color: var(--color-accent);
    background: var(--color-background);
}

.iw-ref-row-img,
.iw-ref-row-body {
    min-width: 0;
}

.iw-ref-row-img {
    overflow: hidden;
}

.iw-ref-row-img img,
.iw-ref-row-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.iw-ref-row-placeholder {
    background: var(--color-border);
}

.iw-ref-row-body {
    align-self: start;
}

.iw-ref-row-body .ref-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.iw-ref-row-body .ref-index {
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-accent);
}

.iw-ref-row-body .ref-head h3 {
    font-size: 1.8rem;
    color: var(--color-heading);
    margin-bottom: 0;
}

.iw-ref-row-body .ref-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.iw-ref-row-body p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 767.98px) {
    .iw-ref-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

/* === KONTAKT === */
.iw-contact-info-block {
    background: var(--color-primary);
    padding: 3rem;
    color: rgb(255, 255, 255);
    height: 100%;
}

.iw-contact-info-block h3 {
    font-size: 2rem;
    color: rgb(255, 255, 255);
    margin-bottom: 2rem;
}

.iw-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.iw-contact-item .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--color-cta-text);
}

.iw-contact-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.iw-contact-form {
    background: var(--color-surface);
    padding: 3rem;
}

.iw-contact-form .form-control {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    padding: 0.75rem 0;
    transition: border-color 0.2s ease;
}

.iw-contact-form .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--color-accent);
    background: transparent;
}

.iw-contact-form label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* === MAP === */
.iw-map-wrap {
    height: 400px;
    filter: grayscale(40%);
    overflow: hidden;
}

.iw-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === OEFFNUNGSZEITEN === */
.iw-hours-table {
    width: 100%;
}

.iw-hours-table tr {
    border-bottom: 1px solid var(--color-border);
}

.iw-hours-table td {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

.iw-hours-table td:first-child {
    font-weight: 700;
    color: var(--color-heading);
    width: 40%;
}

.iw-hours-table td.closed {
    color: var(--color-border);
    font-style: italic;
}

.iw-hours-today td {
    color: var(--color-accent) !important;
    font-weight: 700;
}

/* === SEITEN-HERO (nicht Startseite) === */
.iw-page-hero {
    display: flex;
    align-items: flex-end;
    padding-top: 80px;
    padding-bottom: 0;
    min-height: 400px;
}

.iw-page-hero .overlay-content {
    padding: 3rem 0 3rem;
}

.iw-page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* === BREADCRUMB === */
.iw-breadcrumb {
    background: var(--color-surface);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.iw-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
}

.iw-breadcrumb li+li::before {
    content: '›';
    color: var(--color-border);
    margin-right: 0.5rem;
}

.iw-breadcrumb a {
    color: var(--color-text);
}

.iw-breadcrumb li:last-child {
    color: var(--color-accent);
    font-weight: 700;
}

/* === LEGAL PAGES === */
.iw-legal-content {
    padding: 5rem 0 6rem;
}

.iw-legal-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.iw-legal-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.iw-legal-content p {
    margin-bottom: 1rem;
}

/* === CONTACT CTA BANNER === */
.iw-contact-cta {
    background: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
    margin: 4rem 0;
    padding: 7rem 0;
}

.iw-contact-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgb(255, 255, 255);
    margin-bottom: 0.75rem;
}

.iw-contact-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* === FOOTER === */
.iw-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 5rem 0 0;
}

.iw-footer h4 {
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.iw-footer p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.iw-footer a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.iw-footer a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.iw-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.iw-footer .footer-bottom {
    padding: 1.25rem 0;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.iw-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    display: inline;
    margin: 0 0.75rem;
    padding: 0;
    font-size: 0.8rem;
}

.iw-footer .footer-bottom a:hover {
    padding-left: 0;
    color: var(--color-accent);
}

.iw-footer .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.iw-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

.iw-footer .social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent) !important;
    padding-left: 0;
}

/* === DARK THEME OVERRIDES === */
body.theme-dark .iw-feature-card,
body.theme-dark .iw-ref-row,
body.theme-dark .iw-team-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .iw-contact-form {
    background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .iw-services {
    background: rgba(255, 255, 255, 0.03);
}

body.theme-dark .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .clip-bottom {
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
        padding-bottom: 5rem;
    }

    .clip-top {
        clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 100%);
        padding-top: 5rem;
    }

    .clip-both {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .iw-cta-banner {
        clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    }

    .iw-contact-cta {
        clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    }

    .iw-contact-info-block,
    .iw-contact-form {
        padding: 2rem;
    }

    .iw-navbar-collapse {
        background: var(--color-primary);
        padding: 1rem 0;
    }
}

@media (max-width: 767.98px) {
    .iw-hero h1 {
        font-size: 3rem;
    }

    .iw-hero .hero-actions {
        flex-direction: column;
    }

    .iw-page-hero {
        min-height: 35vh;
    }

    .iw-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .iw-hero h1 {
        font-size: 2.5rem;
    }

    /* Nummer nicht mehr auf feste Mindestbreite ziehen – gibt dem Text auf
       schmalen Bildschirmen mehr Platz. */
    .iw-service-item .service-index {
        min-width: 0;
    }

    /* Weniger seitliches Padding -> mehr Platz fuer den Text. */
    .iw-feature-card {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in.delay-1 {
    animation-delay: 0.1s;
}

.animate-in.delay-2 {
    animation-delay: 0.2s;
}

.animate-in.delay-3 {
    animation-delay: 0.3s;
}

.animate-in.delay-4 {
    animation-delay: 0.4s;
}

/* --- Hidden Navigation (via Editor-Modal ausgeblendete Eintraege) --- */
[data-nav-hidden="true"] {
    display: none !important;
}

/* ============================================================
   STRUKTUR-SEITEN: FAQ / Preisliste / Speisekarte / Karriere
   REGEL: KEINE Hex-Werte – ausschliesslich var(--color-*)
   ============================================================ */

/* Gemeinsamer Sektions-Rahmen */
.iw-struct-section {
    padding: 0rem 0 6rem;
    background: var(--color-background);
}

/* FAQ / Job Akkordeon (natives <details>) */
.iw-faq-item {
    background: var(--color-surface);
    border-left: 4px solid var(--color-border);
    margin-bottom: 0.75rem;
    transition: border-color 0.25s ease;
}

.iw-faq-item[open] {
    border-left-color: var(--color-accent);
}

.iw-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: var(--color-heading);
}

.iw-faq-item__question::-webkit-details-marker {
    display: none;
}

.iw-faq-item__icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.iw-faq-item[open] .iw-faq-item__icon {
    transform: rotate(225deg);
}

.iw-faq-item__answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* Filter-Leiste (Gruppen/Untergruppen) */
.iw-list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.iw-list-filter--sub {
    margin-bottom: 2rem;
}

.iw-list-filter__btn {
    border: 2px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iw-list-filter__btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.iw-list-filter__btn.is-active {
    background: var(--color-cta);
    border-color: var(--color-cta);
    color: var(--color-cta-text);
}

/* Preis-/Speisen-Gruppen */
.iw-price-group {
    margin-bottom: 3rem;
}

.iw-price-group__title {
    font-size: 2rem;
    color: var(--color-heading);
    margin: 1rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
}

.iw-price-subgroup {
    margin-bottom: 1.5rem;
}

.iw-price-subgroup__title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin: 1.25rem 0 0.75rem;
}

.iw-price-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.iw-price-item__main {
    flex: 1;
    min-width: 0;
}

.iw-price-item__title {
    font-weight: 700;
    color: var(--color-heading);
}

.iw-price-item__text {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-top: 0.2rem;
    line-height: 1.6;
}

.iw-price-item__artno {
    font-size: 0.75rem;
    color: var(--color-text);
    opacity: 0.65;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.iw-price-item__price {
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    white-space: nowrap;
}

.iw-price-disclaimer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.7;
    line-height: 1.6;
}

/* Speisekarte: Größen-Spalten + Kennungen + Legende */
.iw-menu-sizes-head {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.iw-menu-sizes-head__cols {
    display: flex;
    gap: 0;
}

.iw-menu-sizes-head__cols span {
    width: 5.5rem;
    text-align: right;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    opacity: 0.7;
}

.iw-menu-item__prices {
    display: flex;
    flex-shrink: 0;
}

.iw-menu-item__price {
    width: 5.5rem;
    text-align: right;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    white-space: nowrap;
}

/* Nummer der Speise (article_no) vor dem Titel */
.iw-menu-item__no {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    margin-right: 0.35em;
}

.iw-menu-codes {
    font-size: 0.65em;
    color: var(--color-accent);
    margin-left: 0.3em;
    font-weight: 400;
}

.iw-menu-legend {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
}

.iw-menu-legend__block {
    margin-bottom: 0.75rem;
}

.iw-menu-legend__block:last-child {
    margin-bottom: 0;
}

.iw-menu-legend__title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-heading);
    margin-bottom: 0.4rem;
}

.iw-menu-legend__entry {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text);
    margin: 0 1rem 0.25rem 0;
}

/* Karriere */
.iw-job-item__subtitle {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-heading);
    margin: 1.25rem 0 0.5rem;
}

.iw-job-item__contact a {
    color: var(--color-accent);
}

.iw-job-item__contact a:hover {
    text-decoration: underline;
}

/* Dark-Theme */
body.theme-dark .iw-faq-item {
    background: rgba(255, 255, 255, 0.05);
}

body.theme-dark .iw-menu-legend {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    .iw-price-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .iw-menu-sizes-head {
        display: none;
    }

    .iw-menu-item__prices {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .iw-menu-item__price {
        width: auto;
    }
}