/* Rechtsseiten (Impressum, Datenschutz, Kontakt) */
:root {
    --flaetchen-color-com: #bcff03;
    --flaetchen-color-bg: #111111;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


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

html {
    background: var(--flaetchen-color-bg);
}

body.legal {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: #e6e6e6;
    background: var(--flaetchen-color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: legal-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes legal-in {
    from { opacity: 0; transform: translateY(12px); }
}

.legal-header,
.legal-content,
.legal-note {
    margin-top: 2.4em;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-footer {
    max-width: 820px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.legal-home img {
    display: block;
    width: 160px;
    height: auto;
}

.legal-back {
    color: var(--flaetchen-color-com);
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

.legal-back span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-back:hover span {
    transform: translateX(-4px);
}

.legal-content {
    padding-top: 24px;
    padding-bottom: 64px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-content h1 {
    margin: 0 0 32px;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

.legal-content h2 {
    margin: 2.4em 0 0.8em;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--flaetchen-color-com);
}

.legal-content h3 {
    margin: 2em 0 0.6em;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.legal-content h4 {
    margin: 1.6em 0 0.4em;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.legal-content p,
.legal-content ul {
    margin: 0 0 1em;
}

.legal-content a {
    color: var(--flaetchen-color-com);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.legal-content .legal-logo {
    display: inline-block;
    margin: 8px 0 16px;
}

.legal-logo img {
    display: block;
    width: 200px;
    height: auto;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 24px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

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

.legal-footer a:hover,
.legal-footer a[aria-current="page"] {
    color: var(--flaetchen-color-com);
}

.legal-footer p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    body.legal { animation: none; }
}

/* ==========================================================================
   Gäste-WLAN (/welcome-wlan, /wlan-nutzungsbedingungen) – mobil zuerst
   ========================================================================== */
.wlan {
    --wlan-com: #bcff03;
    --wlan-net: #e5007e;
    --wlan-wp: #f5b62b;
    --wlan-wp-grad: linear-gradient(90deg, #fac700, #de3359 55%, #926ca9);
    --wlan-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --wlan-gutter: 22px;
}

.wlan ::selection {
    background: var(--wlan-com);
    color: #111;
}

.wlan :focus-visible {
    outline: 2px solid var(--wlan-com);
    outline-offset: 3px;
    border-radius: 4px;
}

.wlan abbr {
    text-decoration: none;
}

/* Kopfbereich: Serverraum-Bild, drei Laserlinien, Begrüßung */
.wlan-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(78svh, 640px);
    /* gleiche Spalte wie der Inhalt darunter (max. 960px, zentriert) */
    --wlan-edge: max(var(--wlan-gutter), calc((100% - 960px) / 2 + var(--wlan-gutter)));
    padding: clamp(36px, 6vw, 56px) var(--wlan-edge) 72px; /* Luft über dem Logo */
    overflow: hidden;
}

/* Kopfbild: Lounge bei Nacht mit den drei Lichtlinien in den Markenfarben */
.wlan-stage-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #111 url('../img/wlan-lounge.webp') 50% 40% / cover no-repeat;
    animation: wlan-glow 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Verlauf: unten in den Seitengrund, links etwas dunkler für den Text */
.wlan-stage-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0) 40%, rgba(17, 17, 17, 0.85) 78%, #111 100%),
        linear-gradient(90deg, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0) 60%);
}

.wlan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wlan-bar .legal-home img {
    width: clamp(170px, 46vw, 210px);
}

.wlan-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge sitzt jetzt über der Begrüßung */
.wlan-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 0.4em 1em;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.45);
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.wlan-hello {
    max-width: 640px;
    animation: wlan-rise 1s var(--wlan-ease) 0.35s both;
}

.wlan-hello h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 8.4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.wlan-hello h1 small {
    display: inline-block;
    margin-top: 0.35em;
    font-size: 0.56em;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--wlan-com);
}

.wlan-hello p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

/* Inhalt */
.wlan-main {
    max-width: 960px;
    margin: -44px auto 0;
    padding: 0 var(--wlan-gutter) 56px;
    line-height: 1.6;
}

/* Kacheln mit Zugangsinfos */
.wlan-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wlan-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px 18px;
    border-radius: 16px;
    background: #1b1b1b;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    overflow-wrap: normal;
    animation: wlan-rise 0.9s var(--wlan-ease) both;
}

.wlan-tile:nth-child(1) { animation-delay: 0.5s; }
.wlan-tile:nth-child(2) { animation-delay: 0.58s; }
.wlan-tile:nth-child(3) { animation-delay: 0.66s; }
.wlan-tile:nth-child(4) { animation-delay: 0.74s; }

/* Lichtkante oben in Markenfarbe */
.wlan-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--tile);
    box-shadow: 0 0 18px var(--tile);
}

.wlan-tile--com { --tile: var(--wlan-com); }
.wlan-tile--net { --tile: var(--wlan-net); }
.wlan-tile--warn { --tile: var(--wlan-wp); background: #221d12; }

.wlan-tile strong {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    hyphens: auto;
}

.wlan-tile--warn strong {
    color: var(--wlan-wp);
}

.wlan-tile span {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

/* Tabs */
.wlan-tabs {
    margin-top: 44px;
}

.wlan-tablist {
    position: relative;
    display: none; /* ohne JavaScript stehen alle Abschnitte untereinander */
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    scroll-snap-type: x proximity;
}

.wlan-tablist::-webkit-scrollbar {
    display: none;
}

.js .wlan-tablist {
    display: flex;
}

.wlan-tablist [role="tab"] {
    flex: 0 0 auto;
    padding: 12px 14px 14px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    scroll-snap-align: start;
    transition: color 0.25s ease;
}

.wlan-tablist [role="tab"]:hover {
    color: #fff;
}

.wlan-tablist [role="tab"][aria-selected="true"] {
    color: #fff;
    font-weight: 500;
}

.wlan-tab-indicator {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--w, 0);
    height: 2px;
    background: var(--wlan-com);
    box-shadow: 0 0 12px var(--wlan-com);
    transform: translateX(var(--x, 0));
    transition: transform 0.45s var(--wlan-ease), width 0.45s var(--wlan-ease);
}

.wlan-panel {
    padding: 26px 2px 4px;
}

.js .wlan-panel:not([hidden]) {
    animation: wlan-panel 0.5s var(--wlan-ease) both;
}

.wlan-panel h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 500;
    color: #fff;
}

.wlan-panel p {
    margin: 0 0 1em;
}

.wlan-panel a {
    color: var(--wlan-com);
    text-underline-offset: 3px;
}

.wlan-facts {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wlan-facts li {
    padding-left: 18px;
    border-left: 1px solid rgba(188, 255, 3, 0.5);
}

.wlan-facts b {
    font-weight: 500;
    color: #fff;
}

.wlan-big {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 400;
    color: #fff;
}

.wlan-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wlan-contact a {
    font-size: 1.05rem;
    text-decoration: none;
}

.wlan-terms {
    margin: 0;
    padding-left: 1.4em;
}

.wlan-terms li {
    margin-bottom: 0.8em;
    padding-left: 0.3em;
}

.wlan-terms li::marker {
    color: var(--wlan-com);
    font-weight: 500;
}

.wlan-privacy {
    margin: 0;
}

.wlan-privacy dt {
    margin-top: 16px;
    font-weight: 500;
    color: #fff;
}

.wlan-privacy dd {
    margin: 2px 0 0;
}

.wlan-note {
    margin-top: 1.4em;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Business Units als Bildstreifen */
.wlan-units {
    margin-top: 56px;
}

.wlan-units h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 500;
    color: #fff;
}

.wlan-units ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wlan-unit a {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Logos stehen in allen Kacheln auf einer Linie */
    gap: 14px;
    min-height: 132px;
    padding: 20px;
    border-radius: 16px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    text-decoration: none;
}

/* neutraler Farbschimmer in der Unit-Farbe statt Foto */
.wlan-unit a::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -2;
    background: radial-gradient(ellipse 55% 60% at 92% 10%, var(--glow), transparent 70%), #1b1b1b;
    transition: transform 0.8s var(--wlan-ease);
}

.wlan-unit a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom: 2px solid var(--unit);
    border-radius: 16px;
}

.wlan-unit a:hover::before,
.wlan-unit a:focus-visible::before {
    transform: scale(1.06);
}

/* gleich hohe Logo-Zeile, Logos darin vertikal mittig */
.wlan-unit img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 85%;
    object-fit: contain;
    object-position: left center;
}

.wlan-unit i {
    font-style: normal;
    color: var(--unit);
    display: inline-block;
    transition: transform 0.3s var(--wlan-ease);
}

.wlan-unit a:hover i {
    transform: translateX(4px);
}

.wlan-unit--com { --unit: var(--wlan-com); --glow: rgba(188, 255, 3, 0.16); }
.wlan-unit--net { --unit: var(--wlan-net); --glow: rgba(229, 0, 126, 0.2); }
.wlan-unit--wp { --unit: var(--wlan-wp); --glow: rgba(245, 182, 43, 0.16); }

.wlan .legal-footer {
    max-width: 960px;
    padding-left: var(--wlan-gutter);
    padding-right: var(--wlan-gutter);
}

/* Seite /wlan-nutzungsbedingungen (statisch) */
.wlan-lines {
    display: flex;
    height: 3px;
}

.wlan-lines span {
    flex: 1;
}

.wlan-lines span:nth-child(1) { background: var(--wlan-com); }
.wlan-lines span:nth-child(2) { background: var(--wlan-net); }
.wlan-lines span:nth-child(3) { background: var(--wlan-wp); }

/* Bewegung */
@keyframes wlan-rise {
    from { opacity: 0; transform: translateY(16px); }
}

@keyframes wlan-glow {
    from { opacity: 0; }
}

@keyframes wlan-panel {
    from { opacity: 0; transform: translateY(8px); }
}

/* Größere Bildschirme */
@media (min-width: 720px) {
    .wlan {
        --wlan-gutter: 40px;
    }

    .wlan-stage {
        padding-bottom: 96px;
    }

    /* Querformat-Motiv ab Tablet-Breite: Linien und Sessel rechts, Wand links für den Text */
    .wlan-stage-bg {
        background-image: url('../img/wlan-lounge-wide.webp');
        background-position: 60% 45%;
    }

    .wlan-tiles {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .wlan-tile {
        padding: 22px 20px;
    }

    .wlan-units ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .wlan-unit a {
        min-height: 170px;
    }

    .wlan-contact {
        flex-direction: row;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wlan *,
    .wlan *::before,
    .wlan *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* iOS wandelt Domains/Nummern sonst in blaue Links (z. B. im WLAN-Anmeldefenster) */
a[x-apple-data-detectors] {
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}
