/* =============================================================
   ISSENDORFF – main.css
   Globales Stylesheet für alle Seiten
   ============================================================= */

/* ── CSS-Variablen ── */
:root {
    --orange:       #e8690a;
    --orange-light: #f07a20;
    --white:        #ffffff;
    --gray:         #8a9bb0;
    --gray-light:   #b0bec5;
    --dark:         #050a12;
    --dark-blue:    #0d1b2e;
    --mid-blue:     #112240;
    --border:       rgba(255,255,255,0.08);
    --shadow:       0 4px 24px rgba(0,0,0,0.4);

    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --radius:       0px; /* Bewusst kantig – zum ISSENDORFF-Industriedesign passend */
    --transition:   0.2s ease;

    --header-h:     120px;
    --nav-h:        48px;
}

/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at top left, #1a2a4a 0%, #0d1b2e 40%, #050a12 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--white);
    line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-light); }

ul[role="list"] { list-style: none; }

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

/* ── HEADER ── */
header[role="banner"] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 0 48px 16px 48px;
    gap: 24px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 96px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Utility Nav (oben rechts) */
.utility-nav ul {
    display: flex; gap: 24px; align-items: center;
}

.utility-nav a, .utility-nav .lang-current {
    font-size: 0.84rem; color: var(--gray);
    transition: color var(--transition);
}

.utility-nav a:hover { color: var(--white); }

.nav-highlight { color: var(--orange) !important; font-weight: 600; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column; gap: 6px;
    cursor: pointer; padding: 8px;
    background: none; border: none;
    flex-shrink: 0;
}

.hamburger span {
    display: block; width: 30px; height: 3px;
    background: var(--gray); transition: all 0.3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(5,10,18,0.98);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 8px 0 16px;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-h));
}

.mobile-menu.open { display: flex; }

.mobile-menu nav ul { display: flex; flex-direction: column; }

.mobile-menu a {
    display: block;
    color: var(--gray); padding: 12px 24px;
    font-size: 0.95rem; font-weight: 600;
    border-left: 2px solid transparent;
    transition: all var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active { color: var(--white); border-left-color: var(--orange); }

.mobile-menu-divider {
    height: 1px; background: var(--border); margin: 8px 24px;
}

/* ── HAUPTNAVIGATION ── */
.main-nav {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav ul {
    display: flex;
    padding: 0 48px;
    min-width: max-content;
}

.main-nav a {
    display: block;
    color: var(--gray);
    padding: 14px 18px;
    font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--white);
    border-bottom-color: var(--orange);
}

/* ── MAIN CONTENT ── */
main {
    flex: 1;
    padding: 48px 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Seitentitel */
.page-header {
    margin-bottom: 40px;
    border-left: 3px solid var(--orange);
    padding-left: 20px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    line-height: 1.1;
}

.page-header h1 span { color: var(--orange); }

.page-header p {
    color: var(--gray); margin-top: 8px; font-size: 1rem;
}

/* Karten / Cards */
.card {
    background: rgba(13,27,46,0.85);
    border: 1px solid var(--border);
    border-top: 2px solid var(--orange);
    backdrop-filter: blur(12px);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 16px;
}

.card h2 span { color: var(--orange); }

/* Grid-Layout für Unterseiten */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Formular-Elemente (global) */
label {
    display: block;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray); margin-bottom: 6px; margin-top: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white); font-size: 1rem;
    font-family: var(--font-body);
    outline: none; transition: border-color var(--transition);
    -webkit-appearance: none; border-radius: 0;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--orange);
    background: rgba(255,255,255,0.07);
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2); }

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: all var(--transition);
    border: none; border-radius: 0;
    -webkit-appearance: none;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--orange); color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

/* Meldungen */
.message {
    padding: 11px 14px; font-size: 0.88rem;
    margin-bottom: 20px; border-left: 3px solid;
}
.message.error   { background: rgba(200,40,40,0.1);  border-color: #c62828; color: #ff8a80; }
.message.success { background: rgba(20,120,60,0.1);  border-color: #2e7d32; color: #69f0ae; }
.message.info    { background: rgba(20,80,160,0.1);  border-color: #1565c0; color: #82b1ff; }

/* ── FOOTER ── */
footer[role="contentinfo"] {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 48px;
}

.footer-copy { font-size: 0.78rem; color: var(--gray); }

.footer-nav ul {
    display: flex; flex-wrap: wrap; gap: 4px;
}

.footer-nav a {
    color: var(--gray); font-size: 0.78rem;
    padding: 2px 10px;
    border-left: 1px solid var(--border);
    transition: color var(--transition);
}

.footer-nav li:first-child a { border-left: none; }
.footer-nav a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .header-inner { padding: 0 28px; }
    .main-nav ul  { padding: 0 28px; }
    .footer-inner { padding: 16px 28px; }
    main          { padding: 36px 28px; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }

    .header-inner {
        padding: 0 16px;
        justify-content: space-between;
    }
    .utility-nav  { display: none; }
    .hamburger    { display: flex; }
    .logo-img     { height: 72px; }

    .main-nav     { display: none; }

    main { padding: 24px 16px; }

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

    .footer-nav a { border-left: none; padding: 2px 8px 2px 0; }
}

@media (max-width: 480px) {
    .logo-img { height: 57px; }

    .page-header h1 { font-size: 1.7rem; }
    .content-grid   { grid-template-columns: 1fr; }
}

/* ── LOGIN-SEITE ── */
.login-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.card-header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 24px;
}
.card-header h1 span { color: var(--orange); }

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 0;
}

.tab {
    flex: 1; padding: 10px; text-align: center; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gray);
    border: none; border-bottom: 2px solid transparent;
    background: none; margin-bottom: -1px;
    transition: all var(--transition); font-family: var(--font-body);
}
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.form-section { display: none; }
.form-section.active { display: block; }

/* ── WELCOME-SEITE ── */
.welcome-wrap {
    text-align: center;
    padding: 40px 16px;
}

.welcome-label {
    font-size: 0.72rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--orange);
    margin-bottom: 16px;
}

.hello-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700; letter-spacing: 4px;
    text-transform: uppercase; line-height: 1;
    margin-bottom: 12px;
}
.hello-text span { color: var(--orange); }

.welcome-divider {
    width: 60px; height: 2px;
    background: var(--orange);
    margin: 20px auto 24px;
}

.username-text {
    font-size: 1rem; color: var(--gray);
    margin-bottom: 36px; letter-spacing: 1px;
}
.username-text strong { color: var(--white); }

/* ── WEITERLESEN-LINK ── */
.weiterlesen {
    display: block;
    margin-top: auto;
    padding-top: 16px;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
    align-self: flex-end;
}
.weiterlesen:hover {
    color: var(--orange-light);
    border-bottom-color: var(--orange-light);
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.82);
    z-index: 9999;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e8690a #0a1628;
}

.modal-overlay::-webkit-scrollbar { width: 8px; }
.modal-overlay::-webkit-scrollbar-track { background: #0a1628; }
.modal-overlay::-webkit-scrollbar-thumb { background: #e8690a; border-radius: 4px; }
.modal-overlay::-webkit-scrollbar-thumb:hover { background: #f07a20; }

/* display wird per JS gesetzt */

.modal-box {
    background: #0d1b2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid #e8690a;
    padding: 40px;
    width: 90%;
    max-width: 560px;
    margin: 60px auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    box-sizing: border-box;
}

/* Fullscreen-Variante setzt max-width zurück */
.modal-box.modal-box--fullscreen {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 32px 40px;
    box-shadow: none;
}

.modal-box p + p { margin-top: 16px; }

.modal-box h2 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
}

.modal-box h2 span { color: #e8690a; }

.modal-box p {
    color: #b0bec5;
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    color: #8a9bb0; font-size: 1.2rem;
    cursor: pointer; padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover { color: #ffffff; }

@media (max-width: 768px) {
    .modal-box {
        width: 95%;
        margin: 30px auto;
        padding: 24px 16px;
    }
    .modal-box p { font-size: 0.88rem; line-height: 1.7; }
    .modal-close { top: 10px; right: 10px; }
}

/* ── HOME HERO ── */
.home-main {
    padding: 0;
    max-width: 100%;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    display: flex;
    align-items: center;
}

/* Hintergrundbild */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../ofenanlage.jpg');
    background-size: cover;
    background-position: center right;
    z-index: 0;
}

/* Abdunkelung: von links (dunkler Hintergrund) nach rechts (transparent) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #050a12 0%,
        #050a12 20%,
        rgba(5, 10, 18, 0.85) 40%,
        rgba(5, 10, 18, 0.4) 65%,
        rgba(5, 10, 18, 0.1) 85%,
        transparent 100%
    );
    z-index: 1;
}

/* Inhalt über dem Bild */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 48px;
}

@media (max-width: 1024px) {
    .hero-content { padding: 36px 28px; }
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(5,10,18,0.85) 0%,
            rgba(5,10,18,0.7) 100%
        );
    }
    .hero-content { padding: 24px 16px; }
}

/* ── PRODUKTE HERO ── */
body .hero--produkte .hero-bg,
.hero--produkte .hero-bg {
    background-image: url('../metallfaserbrenner.jpg');
    background-size: cover;
    background-position: center center;
}

/* ── LEISTUNGEN HERO ── */
body .hero--leistungen .hero-bg,
.hero--leistungen .hero-bg {
    background-image: url('../schreibtisch.jpg');
    background-size: cover;
    background-position: center center;
}

/* ── MODAL H3 (für Datenschutz etc.) ── */
.modal-box h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 24px;
    margin-bottom: 10px;
}

.modal-body ul {
    padding-left: 18px;
    color: var(--gray-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-body ul li { margin-bottom: 4px; }

/* ── KONTAKTFORMULAR ── */
.kontakt-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ktab {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: -1px;
}

.ktab.active  { color: var(--orange); border-bottom-color: var(--orange); }
.ktab:hover   { color: var(--white); }

.ktab-content          { display: none; }
.ktab-content.active   { display: block; }

.kontakt-form { max-width: 700px; }

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 180px; }

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

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pflichtfeld-hinweis {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* Danke-Meldung */
.kontakt-danke {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.danke-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(46,125,50,0.15);
    border: 2px solid #2e7d32;
    color: #69f0ae;
    font-size: 2rem;
    line-height: 72px;
    text-align: center;
    margin: 0 auto 24px;
}

.kontakt-danke h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.kontakt-danke p {
    color: var(--gray-light);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-footer { flex-direction: column; align-items: flex-start; }
    .ktab { padding: 10px 14px; font-size: 0.75rem; }
}

/* Kontakt: Hinweistext unter Button */
.form-footer--msg {
    flex-direction: column;
    align-items: flex-start;
}

/* ── KONTAKT ADRESSE ── */
.kontakt-adresse {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 24px 28px;
    background: rgba(13,27,46,0.85);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    max-width: 700px;
}

.kontakt-adresse-block p {
    color: var(--gray-light);
    line-height: 1.9;
    font-size: 0.92rem;
}

.kontakt-adresse-block strong {
    color: var(--white);
    font-size: 0.95rem;
}

.kontakt-adresse-block a {
    color: var(--orange);
}

.kontakt-adresse-block a:hover {
    color: var(--orange-light);
}

@media (max-width: 480px) {
    .kontakt-adresse { gap: 20px; padding: 18px 16px; }
}

/* ── PARTNER-LISTE ── */
.partner-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.partner-logo {
    width: 120px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    padding: 6px;
}

.partner-logo-placeholder {
    width: 120px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(232,105,10,0.15);
    border: 1px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--orange);
    letter-spacing: 1px;
}

.partner-sep {
    border: none;
    border-top: 1px solid var(--orange);
    opacity: 0.4;
    margin: 8px 0;
}

.partner-item p { margin: 0; color: var(--gray-light); line-height: 1.6; }
.partner-item strong { color: var(--white); }

/* ── CONTENT GRID WIDE (6 Karten) ── */
.content-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .content-grid--wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .content-grid--wide { grid-template-columns: 1fr; }
}

/* ── PARTNER FEATURED (ERAtec) ── */
.partner-logo--lg {
    width: 180px;
    max-height: 80px;
}

.partner-name--lg {
    font-size: 1.05rem;
    line-height: 1.8;
}

.partner-name--lg strong {
    font-size: 1.1rem;
}

/* ── PARTNER HERO (ERAtec – volle Breite) ── */
.partner-item--hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 24px;
}

.partner-logo--hero {
    width: 100%;
    max-width: 340px;
    max-height: 100px;
    object-fit: contain;
    padding: 0;
    background: none;
}

.partner-name--hero {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-light);
}

.partner-name--hero strong {
    font-size: 1.25rem;
    color: var(--white);
}

.partner-name--hero span {
    color: var(--gray-light);
    font-size: 1rem;
}

/* ── REFERENZEN-LISTE ── */
.referenzen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referenzen-list li {
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.referenzen-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 1.1rem;
}

.referenzen-list li:last-child {
    border-bottom: none;
}

/* ── KARUSSELL ── */
.carousel {
    position: relative;
    margin-top: 16px;
    user-select: none;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.carousel-slide--active {
    display: flex;
}

.carousel-slide img {
    width: 100%;
    height: calc(100% - 36px);
    object-fit: cover;
    display: block;
}

.carousel-caption {
    background: rgba(10, 22, 40, 0.9);
    color: var(--gray-light);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    margin: 0;
    height: 36px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 18px);
    transform: translateY(-50%);
    background: rgba(10, 22, 40, 0.75);
    border: 1px solid var(--orange);
    color: var(--orange);
    font-size: 2rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    padding: 0;
}

.carousel-btn:hover { background: var(--orange); color: #fff; }
.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 2px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot--active { background: var(--orange); }

/* ── Fullscreen Modal (Tools) ── */
.modal-overlay--fullscreen {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay--fullscreen .modal-box--fullscreen {
    width: 100%;
    max-width: 1400px;
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    padding: 32px 32px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Override the standard modal-box max-width */
    max-width: 1400px !important;
}

.modal-overlay--fullscreen .modal-body {
    flex: 1;
    padding: 0;
    margin-top: 8px;
}

/* Responsive: calc-layout im Modal */
.modal-overlay--fullscreen .calc-layout {
    grid-template-columns: 280px 1fr;
}

@media (max-width: 900px) {
    /* Modal: kein Padding, füllt ganzen Schirm */
    .modal-overlay--fullscreen {
        padding: 0;
    }
    .modal-overlay--fullscreen .modal-box--fullscreen {
        min-height: 100vh;
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        padding: 12px 10px 32px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    /* Ein-Spalten-Layout */
    .modal-overlay--fullscreen .calc-layout {
        grid-template-columns: 1fr !important;
        gap: 12px;
        width: 100%;
    }
    .modal-overlay--fullscreen .calc-sidebar,
    .modal-overlay--fullscreen .calc-right {
        width: 100%;
        min-width: 0;
    }
    /* Inputs und Selects: nie breiter als Container */
    .modal-overlay--fullscreen #modal-flamme input[type="number"],
    .modal-overlay--fullscreen #modal-flamme select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.95rem !important;
        padding: 10px !important;
    }
    /* Karte: kein überstehender Inhalt */
    .modal-overlay--fullscreen .card {
        padding: 14px 10px;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    .modal-overlay--fullscreen .btn-calc {
        padding: 16px;
        font-size: 0.95rem;
    }
    .modal-overlay--fullscreen .btn-calc-wrap {
        position: static;
        background: none;
        padding: 12px 0 0;
    }
    /* Chart */
    .modal-overlay--fullscreen .chart-canvas-wrap {
        height: 240px;
    }
    /* Ergebnistabelle + Zusammensetzung: scrollbar */
    .modal-overlay--fullscreen .results-table-wrap,
    .modal-overlay--fullscreen #molefractions,
    .modal-overlay--fullscreen #massfractions {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-overlay--fullscreen #molefractions table,
    .modal-overlay--fullscreen #massfractions table {
        min-width: 320px;
        white-space: nowrap;
    }
    .modal-overlay--fullscreen .results-table {
        font-size: 0.78rem;
        min-width: 460px;
        width: 100%;
    }
    .modal-overlay--fullscreen .results-table td,
    .modal-overlay--fullscreen .results-table th {
        padding: 5px 7px;
        white-space: nowrap;
    }
    /* h2 kompakter */
    .modal-overlay--fullscreen .modal-box h2,
    #modal-flamme h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}


