/**
 * layout.css — Container, Grid, Grundstruktur (Header/Footer/Sections)
 */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    /* Bericht Nr. 50 — Mobile-Seitenabstand von 16px auf 24px vergrößert
       (Nutzer-Feedback: "links zu eng"), damit alle Sections denselben
       großzügigeren Rand wie der bereits so gebaute Öffnungszeiten-Block
       nutzen statt einer engeren Site-weiten Grundeinstellung. */
    padding-inline: var(--space-5);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-6);
    }
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 245, 0.9);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 800;
    font-size: var(--fs-lg);
}

.site-branding img {
    max-height: 44px;
    width: auto;
}

/* Figma-Referenz "Logo()": Icon-Chip (Verlauf, abgerundet) + Wortmark statt
   reinem Textlink (Rollout-Durchgang 2). */
.tobidu-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.tobidu-brand__icon {
    display: block;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-light), #fff7e6);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
    object-fit: contain;
    padding: 3px;
}

.tobidu-brand__name {
    font-family: var(--font-heading);
    font-weight: var(--fw-heading);
    font-size: var(--fs-lg);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

/* Footer — Bericht Nr. 59, gegen die tatsächliche Live-/Figma-Fußzeile
   (www.tobidu.de) neu gebaut: dunkle Navy-Fläche, Wellen-Deko oben,
   3 Spalten (Kontakt+Social, Navigation, Öffnungszeiten-Karte). */
.site-footer {
    background: var(--color-navy);
    color: var(--color-on-navy, #f4f7ff);
    padding-block: var(--space-10) var(--space-6);
    /* Bericht Nr. 59 — kein margin-top mehr: der frühere Abstand erzeugte
       eine weiße Lücke zwischen der letzten Section und der Fußzeile, in
       der die Wellen-Deko (.tobidu-footer-wave) fehl am Platz saß. Der
       Übergang wird jetzt ausschließlich über die Welle selbst gelöst. */
    position: relative;
    overflow: hidden;
}

.site-footer a {
    color: #ffffff;
}

/* Übergang von der orangen Ticket-CTA-Section (var(--color-primary),
   #FF6B35) zur Navy-Fußzeile — vorher fehlte hier jede Welle (harte
   Kante direkt zum Footer). */
.tobidu-footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: #ff6b35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C200,50 400,0 600,20 C800,40 1000,0 1200,15 L1200,60 L0,60 Z' fill='%231e2f5c'/%3E%3C/svg%3E");
    /* Bericht Nr. 60 — fehlten hier (anders als .tobidu-wave-divider),
       dadurch kachelte der SVG-Hintergrund in der Mitte sichtbar statt
       sich einmal über die volle Breite zu strecken ("Knick" in der Welle). */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.tobidu-footer__grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    padding-top: var(--space-6);
}

@media (min-width: 768px) {
    .tobidu-footer__grid {
        /* Bericht Nr. 60 — Öffnungszeiten-Spalte verbreitert (vorher gleich
           schmal wie die Navigation, Zeiten wirkten gequetscht). */
        grid-template-columns: 1.1fr 0.8fr 1.4fr;
    }
}

.tobidu-footer__col h2 {
    font-family: var(--font-heading);
    font-weight: var(--fw-heading);
    font-size: var(--fs-lg);
    color: #fff;
    margin: 0 0 var(--space-4);
}

.tobidu-footer__company {
    margin: 0 0 var(--space-4);
    line-height: 1.6;
}

.tobidu-footer__social {
    list-style: none;
    display: flex;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    padding: 0;
}

.tobidu-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.tobidu-footer__social a:hover,
.tobidu-footer__social a:focus-visible {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.tobidu-footer__contact-list {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tobidu-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tobidu-footer__claim {
    color: var(--color-on-navy-muted, #c3ccea);
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 32ch;
    margin: 0;
}

.tobidu-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Bericht Nr. 60 — vorher Standard-Browser-Unterstreichung auf jedem
   Link (unruhig/"nicht schön"); jetzt dezent ohne Unterstreichung, mit
   Hover-Farbwechsel und etwas Klickfläche wie ein richtiger Listeneintrag. */
.tobidu-footer__nav-list a {
    display: inline-flex;
    padding: var(--space-2) 0;
    text-decoration: none;
    color: var(--color-on-navy-muted, #c3ccea);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.tobidu-footer__nav-list li:last-child a {
    border-bottom: none;
}

.tobidu-footer__nav-list a:hover,
.tobidu-footer__nav-list a:focus-visible {
    color: #fff;
    padding-left: var(--space-2);
}

.tobidu-footer__hours-card {
    background: var(--color-bg-sky, #e3f4fc);
    border: 2px dashed #fff;
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-5);
    color: var(--color-navy-dark, #16233f);
}

/* Bericht Nr. 60 — Tag/Zeit vorher als ein Fließtext-Satz je Zeile; jetzt
   Tag linksbündig / Zeit rechtsbündig in einer sauberen Zeile, mit
   Trennlinie zwischen den Tagen (bessere Scanbarkeit). */
.tobidu-footer__hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 0.45rem 0;
    font-size: var(--fs-sm);
    border-bottom: 1px solid rgba(30, 47, 92, 0.1);
}

.tobidu-footer__hours-row:first-child {
    padding-top: 0;
}

.tobidu-footer__hours-day {
    font-weight: 700;
}

.tobidu-footer__hours-time {
    text-align: right;
}

.tobidu-footer__hours-hint {
    margin: var(--space-3) 0 0;
    font-weight: 600;
    font-size: var(--fs-sm);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--fs-sm);
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
}

.tobidu-footer__signoff {
    margin-left: auto;
}

/* Grid-Hilfsklassen für Sections */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 {
    grid-template-columns: 1fr;
}

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

.grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.section {
    padding-block: var(--space-10);
}

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

.section__head {
    max-width: 640px;
    margin-bottom: var(--space-8);
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}
