/* Allgemeine Anpassungen */
:root {
  --primary-color: #fcfcfc; /* Ein helles Blau */
  --secondary-color: #6c757d; /* Ein Grauton */
  --accent-color: #1ca4b6;    /* Ein Grünton */
  --accent-color-light: #55dff1;    /* Ein Grünton */
  --text-color-dark: #2e2e2e; /* Dunkler Text */
  --text-color-light: #f0f0f0; /* Heller Text */
  --background-light: #f4f7f6; /* Heller Hintergrund */
  --background-accent: #158796; /* Akzent Hintergrund */
  --background-mid: #2b2b2b;   /* Mittlerer Hintergrund (Nav, Header) */
  --background-dark: #0e0d0d;  /* Dunkler Hintergrund */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color:var(--background-dark);
    color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

#contact p {
    line-height: 0.1rem;
    /* color: yellow;
    font-weight: 900; */
}

#nick-name {
   font-style: italic; 
}

.todo {
    color: yellow; 
    /* font-weight: 900;
    font-size: 5rem; */
}

#todo{
  color:yellow;
    /* font-weight: 900;
    font-size: 2rem; */
}

/* Impressum: compact spacing for contact detail paragraphs */
.contact-details p {
    margin-bottom: 0.5rem;
}

/* Impressum: links in contact details use accent color */
.contact-details a {
    color: var(--accent-color-light);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Impressum: h2 spacing — space before (margin-top), tight after (margin-bottom) */
.page-impressum h2 {
    margin-top: 5rem;
    margin-bottom: -0rem;
    font-size: 1.8rem;
}

/* First h2 on the page needs no extra top margin */
.page-impressum h2:first-of-type {
    margin-top: 0rem;
}

/* Impressum: address element spacing — matches paragraph margin */
.page-impressum address {
    margin-bottom: 2.5rem;
    font-style: normal; /* override browser default italic for address */
}

/* ===== Impressum page: sticky footer via flexbox ===== */
.page-impressum {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-impressum main {
    flex: 1;
}

/* Home icon link — for impressum/dsgvo pages, absolute left of nav bar */
.btn-home {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--background-accent);
    text-decoration: none;
    padding: 0 0.8rem;
    line-height: 0;
    z-index: 1001;
    transition: color 0.25s ease;
}

.btn-home:hover {
    color: var(--accent-color-light);
}

/* Back button — visible outline button, clearly recognizable as interactive */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
    cursor: pointer;
    color: var(--accent-color-light);
    font-size: 1.3rem;
    line-height: 1;
    /* padding: 0.6rem 1.2rem; */
    /* letter-spacing: 0.05em; */
    /* text-transform: uppercase; */
    transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-back:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

/* ===== Header & Navigation ===== */
.header-section {
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* position:sticky creates a containing block for absolute children */
}

/* Main nav wrapper */
.main-nav {
    position: relative;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger button — reset browser button styles, hidden on desktop */
.nav-summary {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
}

/* Nav links list — desktop: horizontal row centered */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent-color-light);
}

/* The three hamburger bars */
.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color-light);
    margin: 5px 0;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.nav-summary:hover .hamburger-bar {
    background-color: var(--accent-color-light);
}

/* Social media icon group — desktop: absolute right of nav */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Desktop: icons 30% smaller than the 22px default → ~15px */
.nav-social-link svg {
    width: 15px;
    height: 15px;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    padding: 0.4rem;
    line-height: 0;
    transition: color 0.25s ease;
}

.nav-social-link:hover {
    color: var(--accent-color-light);
}

/* Todo social icons: yellow to signal placeholder/missing link */
.nav-social-link.todo {
    color: yellow;
}

.nav-social-link.todo:hover {
    color: var(--accent-color-light);
}

/* Mobile-only "Promo Video" shortcut link — centered in nav bar, turquoise */
.nav-promo-mobile {
    display: none; /* hidden on desktop */
}

/* Mobile-only "Home" button — absolute left, turquoise, hidden on desktop */
.nav-home-mobile {
    display: none; /* hidden on desktop */
}

/* JS toggles .hidden to show/hide elements */
.nav-promo-mobile.hidden,
.nav-home-mobile.hidden,
.splash-logo.hidden {
    display: none !important;
}

/* ===== Mobile: hamburger menu ===== */
@media (max-width: 640px) {
    /* Fix nav bar to exactly one row height on mobile */
    .main-nav {
        height: 3.5rem;
        min-height: unset;
        overflow: visible;
    }

    /* Show hamburger button on mobile */
    .nav-summary {
        display: block;
    }

    /* Mobile: social icons sit left of hamburger button.
       Hamburger is ~4rem wide (padding 0.8rem * 2 + icon), placed at right edge of container.
       nav-social is positioned relative to header (full width), so needs larger right offset. */
    .nav-social {
        right: 6rem;
        gap: 0.2rem;
    }

    .nav-social-link svg {
        width: 14px;
        height: 14px;
    }

    /* Show "Promo Video" shortcut link on mobile — centered, turquoise accent color */
    .nav-promo-mobile {
        display: block;
        padding: 0.8rem 1.2rem;
        text-decoration: none;
        color: var(--accent-color-light);
        font-weight: 600;
        font-size: 1.5rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: underline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.25s ease;
    }

    .nav-promo-mobile:hover {
        color: var(--accent-color);
    }

    /* Show "Home" icon button on mobile — fixed to left edge of header (outside container padding) */
    .nav-home-mobile {
        display: flex;
        align-items: center;
        position: absolute;
        left: 0;
        top: 0;
        height: 3.5rem;
        padding: 0 0.8rem;
        text-decoration: none;
        color: var(--background-accent);
        line-height: 0;
        transition: color 0.25s ease;
        z-index: 10;
    }

    .nav-home-mobile:hover {
        color: var(--accent-color);
    }

    /* Nav links hidden by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.5rem 0;
        background-color: var(--background-mid);
        /* Dropdown: absolutely positioned so it doesn't expand the nav bar height */
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        z-index: 999;
    }

    /* JS adds .nav-open to show the menu */
    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ===== Splash section: full viewport height ===== */
#splash {
    /* Subtract sticky nav height from viewport */
    height: calc(100vh - 3.5rem);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ===== Slideshow ===== */
.slideshow {
    position: relative;        /* containing block for .splash-logo overlay */
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ===== Splash: Logo overlay — bottom-right on desktop ===== */
.splash-logo {
    position: absolute;
    bottom: 3rem;                   /* above the dot navigation */
    right: 3rem;                    /* flush to right edge */
    z-index: 10;                    /* above slide images */
    width: min(260px, 28vw);       /* desktop size */
    pointer-events: none;           /* clicks pass through */
}

.splash-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: logo centered at bottom */
@media (max-width: 640px) {
    .splash-logo {
        bottom: 2.5rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: min(220px, 60vw);
    }
}

/* ===== Logo slide (slide 5): logo as main content, centered ===== */
.slide--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-dark);
}

/* Higher specificity than .slide img to override width/height: 100% */
.slide.slide--logo img {
    width: min(700px, 85vw);
    height: auto;
    object-fit: contain;
    display: block;
}

.slideshow-track {
    position: relative;
    width: 100%;
    /* Take all available height, leave room for dots */
    flex: 1;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

/* picture element fills the slide container */
.slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* object-fit: contain — image fully visible, no cropping */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* Dot navigation */
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color-light);
    border-color: var(--accent-color-light);
}

.dot:hover {
    background-color: transparent;           /* no fill on hover — visually distinct from .active */
    border-color: var(--accent-color-light); /* only border lights up */
}

/* Content Sections allgemein */
.content-section {
    padding: 4rem 0; /* Vertikaler Abstand für Sektionen */
}

.content-section h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

/* Hintergrundfarben */
.light-bg {
    background-color: var(--background-light);
}

.mid-bg {
    background-color: var(--background-mid);
    color: var(--text-color-light);
}

.dark-bg {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.accent-bg {
    background-color: var(--background-accent);
    color: var(--text-color-light);
}

.white-text {
    color: var(--text-color-light);
}

.text-center {
    text-align: left;
}

/* Cards für Übersicht und Termin Sektionen */
.card {
    background-color: var(--background-accent);
    border: 1px solid #555;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem; /* Abstand zwischen Karten, wenn sie stapeln */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-0px);
}

.card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 3px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.dark-card {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    border-color: #555;
}

.dark-card a.button-outline {
    color: var(--accent-color-light);
    border-color: var(--accent-color-light);
}

.dark-card a.button-outline:hover {
    background-color: var(--accent-color-light);
    color: var(--background-dark);
}


/* Videos Sektion */
.video-container {
    margin-bottom: 0.75rem;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.video-thumbnail-link {
    display: block;
}

.video-thumbnail-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.2s ease;
}

.video-thumbnail-link:hover img {
    opacity: 0.8;
}

/* Responsive 16:9 iframe container */
.video-container--iframe {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.75rem;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.video-container--iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

/* Anfrage Sektion (Formular) */
.column-50.column-offset-25 {
    background-color: var(--background-accent);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.dark-bg label {
    color: var(--text-color-light); /* Label-Farbe im dunklen Bereich */
}

.dark-bg input[type="text"],
.dark-bg input[type="email"],
.dark-bg textarea {
    background-color: var(--background-accent);
    border-color: #666;
    color: var(--text-color-light);
}

.dark-bg input[type="text"]::placeholder,
.dark-bg input[type="email"]::placeholder,
.dark-bg textarea::placeholder {
    color: #bbb;
}

.dark-bg input[type="text"]:focus,
.dark-bg input[type="email"]:focus,
.dark-bg textarea:focus {
    border-color: var(--accent-color-light); /* Beispiel Fokusfarbe */
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}


/* Footer legal nav — Impressum + DSGVO links */
.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.footer-legal a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: var(--accent-color-light);
}

/* Footer-Bereich */
.footer-section {
    /* background-color: var(--background-dark); */
    color: #bbb;
    padding: 1rem 0;
    font-size: 1.5rem;
}

.footer-section h5 {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color-light);
}

.footer-section .copyright-row {
    border-top: 1px solid var(--accent-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer-section .copyright-row p {
    margin-bottom: 0;
}

/* Milligram Buttons anpassen (Beispiel) */
.button.button-primary {
    background-color: var(--accent-color); /* Eine Beispiel-Akzentfarbe */
    border-color: var(--accent-color);
}

.button.button-primary:hover {
    background-color: var(--accent-color-light);
    border-color: var(--accent-color);
}

.button.button-outline {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.button.button-outline:hover {
    background-color: var(--accent-color-light);
    color: var(--accent-color-light);
}

/* ===== Additional mobile adjustments ===== */
@media (max-width: 640px) {
    .content-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Milligram stacks columns automatically below 640px.
       Ensure spacing between stacked elements. */
    .content-section .column {
        margin-bottom: 2rem;
    }

    /* Form: full width on mobile */
    .column-50.column-offset-25 {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }
}
