/* =======================================================================
   style.css – ASD-Opitz Website
   Stand: Februar 2026
   ======================================================================= */

:root {
    --primary:       #0f3460;
    --primary-dark:  #0a2540;
    --accent:        #00a3d9;
    --accent-dark:   #0088b5;
    --text:          #1e293b;
    --text-light:    #475569;
    --bg:            #f8fafc;
    --surface:       #ffffff;
    --radius:        20px;
    --shadow-sm:     0 10px 30px rgba(0,0,0,0.08);
    --shadow-md:     0 20px 60px rgba(0,0,0,0.12);
    --shadow-lg:     0 30px 80px rgba(0,0,0,0.18);
    --transition:    all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Überschriften ─────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.animate-text,
.section-heading {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.25;
    margin: 0.8em 0 0.4em;
    font-weight: 700;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 6.5vw, 3.8rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.9rem, 4.8vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 600;
}
h4 {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 600;
}

/* Abschnitts-Überschriften – zentriert + unterstrichen */
.section-heading,
main section h2,
main section h1,
main section h3,
main section h4 {
    text-align: center;
    font-size: clamp(1.9rem, 4.8vw, 2.5rem);
    font-weight: 600;
    color: var(--primary);
    margin: 3rem 0 1.8rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.section-heading::after,
main section h2::after,
main section h1::after,
main section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--accent);
    border-radius: 3px;
}

/* Fließtext & Standard-Elemente */
p, li, address {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 1em 0;
}

strong, b, .strong {
    font-weight: 600;
    color: var(--primary);
}

/* ── Content-Box ───────────────────────────────────────────────────────── */

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* ── Header ────────────────────────────────────────────────────────────── */

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: transparent;
    color: white;
    padding: 0.5rem 1.2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(6px);
}

header.scrolled {
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    background: white;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 56px;
}

.logo img {
    max-height: 56px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
    /*           x    y  blur  farbe + opacity */
}

.nav-desktop {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 1.8rem;
}

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--accent);
}

header.scrolled .nav-desktop a {
    color: var(--text);
}

header.scrolled .nav-desktop a:hover {
    color: var(--accent);
}

/* ── Hero & Hero-Footer ────────────────────────────────────────────────── */

.hero,
.hero-footer {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.hero {
    margin-top: -100px;
    padding-top: 80px;
}

.hero-footer {
    min-height: auto;
    padding: 6rem 2.5rem 4rem;
    margin-top: 5rem;
    align-items: flex-start;
}

.hero-bg,
.hero-footer .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 30%, var(--accent) 70%, var(--primary) 100%);
    background-size: 300% 300%;
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-overlay,
.hero-footer .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

.hero .relative,
.hero-footer .relative {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    padding: 0 1.5rem;
}

/* Hero-Content deutlich nach unten verschieben */
.hero-content {
    margin-top: 10rem;          /* Hauptverschiebung nach unten */
}

/* Schrift im gesamten Hero-Bereich konsequent weiß erzwingen */
.hero,
.hero *,
.hero-title,
.hero-subtitle,
.animate-text,
.animate-text span,
.animate-text .char {
    color: white !important;
}

.hero-title,
.hero-subtitle {
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.logo-container {
    max-width: 450px;
    margin: 3rem auto;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.35));
}

/* Mobile: Hero-Content nicht zu weit nach unten schieben */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 6rem;           /* kleinerer Abstand auf Mobilgeräten */
    }
}

@media (max-height: 700px) {
    .hero-content {
        margin-top: 4rem;
    }
}

.hero-footer p {
    margin: 0.5rem 0;
}

.hero-footer a {
    color: var(--accent);
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: 500;
}

.hero-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ── Hamburger-Menü ────────────────────────────────────────────────────── */

#menu-toggle {
    display: none;
    position: fixed;
    top: 0.8rem;
    right: 1rem;
    z-index: 1200;
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

#menu-toggle .bar {
    position: absolute;
    left: 10px;
    width: 36px;
    height: 4.5px;
    background-color: white;
    border-radius: 2.5px;
    transition: all 0.35s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

#menu-toggle .top    { top: 15px; }
#menu-toggle .middle { top: 25px; }
#menu-toggle .bottom { top: 35px; }

#menu-toggle.active .top {
    transform: translateY(10px) rotate(135deg);
    transition-delay: 0.12s;
    background: #000000;
}

#menu-toggle.active .middle {
    opacity: 0;
    transform: translateX(-22px);
}

#menu-toggle.active .bottom {
    transform: translateY(-10px) rotate(-135deg);
    transition-delay: 0.12s;
    background: #000000;
}

#menu-toggle:hover .bar {
    background: var(--accent);
}

header.scrolled #menu-toggle .bar,
body.out-of-hero #menu-toggle .bar {
    background-color: #000000 !important;
}

#menu-toggle.active .bar {
    background-color: #000000 !important;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }
}

/* ── Mobile Menu ───────────────────────────────────────────────────────── */

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    color: #000000;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    padding: 80px 20px 40px;
    overflow-y: auto;
    z-index: 1100;
}

#mobile-menu.open {
    transform: translateY(0);
}

#mobile-menu a {
    display: block;
    padding: 1.1rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s ease;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    background: rgba(0,163,217,0.07);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.action-button,
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 1rem 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid transparent;
}

.action-button,
.action-link {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.action-button:hover,
.action-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15,52,96,0.18);
    border-color: rgba(15,52,96,0.2);
}

/* ── Kontakt ───────────────────────────────────────────────────────────── */

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-phone,
.contact-email,
.contact-address {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 1rem 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid transparent;
}

.contact-phone {
    background: var(--primary);
    color: white;
}

.contact-email {
    background: var(--accent);
    color: white;
}

.contact-address {
    background: rgba(15,52,96,0.05);
    color: var(--primary);
    border: 1px solid rgba(15,52,96,0.1);
}

.contact-phone:hover,
.contact-email:hover,
.contact-address:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15,52,96,0.18);
    border-color: rgba(15,52,96,0.2);
}

.contact-phone:hover { background: var(--primary-dark); }
.contact-email:hover { background: var(--accent-dark); }
.contact-address:hover { background: rgba(15,52,96,0.12); }

.contact-phone svg,
.contact-email svg,
.contact-address svg {
    fill: white;
}

.contact-address:hover svg {
    fill: var(--primary-dark);
}

/* Mobile: Kontakt-Buttons kleiner & kompakter machen */
@media (max-width: 640px) {
    .contact-phone,
    .contact-email,
    .contact-address {
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
        gap: 0.75rem;
        margin: 0.8rem 0;
    }

    .contact-phone svg,
    .contact-email svg,
    .contact-address svg,
    .contact-address img {
        width: 24px;
        height: 24px;
    }

    .address-strong {
        font-size: 1.15rem;
    }

    .address-span {
        font-size: 0.95rem;
    }
}
@media (max-width: 380px) {   /* etwas Puffer → greift ab ~360–375px */

    .contact-phone,
    .contact-email,
    .contact-address {
        /* Sehr kompakt, aber immer noch gut tippbar */
        padding: 0.55rem 1.1rem;          /* ~9–10px vertikal, ~17–18px horizontal */
        font-size: 0.92rem;               /* ≈14–15px */
        gap: 0.55rem;                     /* Abstand Icon ↔ Text */
        margin: 0.5rem 0;                 /* Weniger vertikaler Abstand zwischen Buttons */
        border-radius: 8px;
        min-height: 42px;                 /* Mindesthöhe für guten Touch-Target */
        justify-content: center;          /* Text + Icon zentriert */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* ganz dezenter Schatten */
        line-height: 1.3;                 /* etwas mehr Luft bei mehrzeiligem Text */
    }

    /* Icons noch kleiner, aber nicht winzig */
    .contact-phone svg,
    .contact-email svg,
    .contact-address svg {
        width: 1.05em;           /* ≈16–17px */
        height: 1.05em;
        min-width: 18px;         /* verhindert, dass sie zu klein werden */
    }

    /* Falls die Buttons nebeneinander stehen (z. B. in flex row) */
    /* → bei ~360px meist schon stacked, aber für Sicherheit: */
    .contact-container {   /* ← den umschließenden Container meinen */
        flex-direction: column;
        align-items: stretch;   /* Buttons gehen über volle Breite */
    }

    /* Optional: Buttons fast full-width auf winzigen Screens */
    .contact-phone,
    .contact-email,
    .contact-address {
        width: 100%;
        max-width: 360px;      /* verhindert zu breite Buttons bei exakt 360px */
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Adress-Detail ─────────────────────────────────────────────────────── */

.address-info {
    text-align: left;
}

.address-strong {
    font-size: 1.3rem;
    display: block;
    font-weight: 600;
    color: inherit;
}

.address-span {
    font-size: 1.1rem;
    display: block;
    color: inherit;
    opacity: 0.9;
}

/* ── Standorte ─────────────────────────────────────────────────────────── */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.location-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(15,52,96,0.08);
    position: relative;
}

.location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/sh.png');
    background-size: cover;
    background-position: center;
    opacity: 0.20;
    pointer-events: none;
    z-index: 0;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.location-cardiz {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(15,52,96,0.08);
    position: relative;
}

.location-cardiz::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/sh-iz.png');
    background-size: cover;
    background-position: center;
    opacity: 0.20;
    pointer-events: none;
    z-index: 0;
}

.location-cardiz:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.location-cardasa {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(15,52,96,0.08);
    position: relative;
}

.location-cardasa::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/sh-asa.png');
    background-size: cover;
    background-position: center;
    opacity: 0.20;
    pointer-events: none;
    z-index: 0;
}

.location-cardasa:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: 1.8rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.card-content img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.card-content h3 {
    margin: 0.4rem 0 0.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}
.card-content h4 {
    margin: 0.4rem 0 0.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.location-places {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* ── Dialoge ───────────────────────────────────────────────────────────── */

dialog {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    padding: 0;
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 9999;
}

.dialog-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid rgba(15, 52, 96, 0.12);
    padding: 1.1rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.dialog-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 1.65rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    margin: -0.3rem -0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dialog-close:hover,
.dialog-close:focus {
    color: var(--primary);
    background: rgba(0,163,217,0.08);
}

.dialog-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem 1.8rem 2.2rem;
    -webkit-overflow-scrolling: touch;
}

dialog {
    display: none !important;
}

dialog[open] {
    display: flex !important;
}

dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
    background: #0f3460;
    color: white;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.95rem;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-legal {
    margin-bottom: 1.5rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--accent);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 1rem;
    opacity: 0.7;
}

.footer-copyright {
    opacity: 0.85;
    font-size: 0.9rem;
}

/* ── Mobile-spezifische Regeln ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-desktop,
    .right-header-items {
        display: none;
    }

    footer {
        padding: 2rem 1rem 1.2rem;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-separator {
        display: none;
    }

    dialog[open] {
        max-width: 96vw;
        margin: 2vh auto;
    }

    .dialog-header {
        padding: 1rem 1.3rem;
    }

    .dialog-content {
        padding: 1.3rem 1.4rem 2rem;
    }

    .dialog-close {
        font-size: 1.8rem;
    }
}

/* ── Lade- & Fehlerzustände ────────────────────────────────────────────── */

.loading,
.error {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
    font-style: italic;
}

.error {
    color: #c00;
}