:root {
    --primary: #0571dd;
    --secondary: #dfedf7;
    --accent: #cde4f7;
    --text: #333;
    --banana: #ffd84a;
    --light-green: #6edb6e;
    --footer: #444;
    --transition: 150ms ease;
    --popup-transition-duration: 320ms;
    --popup-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Base & Typography */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Clamp scroll boundaries globally (prevents bounce/overscroll) */
html,
body,
body * {
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    overscroll-behavior-inline: none;
    overscroll-behavior-block: none;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure main container doesn't overflow */
main {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    touch-action: pan-y;
}

@supports (overflow-x: clip) {
    html, body {
        overflow-x: clip;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden !important;
    background: white;
    max-width: 100%;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    top: 0;
    touch-action: pan-y;
}

.email-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.email-link:hover,
.email-link:focus-visible {
    color: inherit;
    text-decoration-color: currentColor;
}

.skip-focus-outline:focus,
.skip-focus-outline:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.1);
    transition: background var(--transition);
}

.brand {
    color: white;
    font-weight: 500;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.menu-toggle {
    width: 32px;
    height: 32px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: absolute;
    left: 4px;
    transition: transform 100ms ease, opacity 100ms ease;
}

.menu-toggle span:nth-child(1) { top: 8px; }
.menu-toggle span:nth-child(2) { top: 15px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.active span:nth-child(1) { 
    transform: rotate(45deg) translate(5px, 5px); 
}
.menu-toggle.active span:nth-child(2) { 
    opacity: 0; 
}
.menu-toggle.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(5px, -5px); 
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--popup-transition-duration) var(--popup-transition-timing), visibility 0s linear var(--popup-transition-duration);
    padding: 100px 40px 40px;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--popup-transition-duration) var(--popup-transition-timing), visibility 0s linear 0s;
}

.nav-overlay ul {
    list-style: none;
    text-align: left;
    margin-bottom: 0;
}

.nav-overlay li {
    margin: 20px 0;
}

.nav-overlay a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-overlay a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 400ms ease, transform 400ms ease;
}

.hero-img.preview {
    opacity: 0;
    transform: scale(0.95);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    color: white;
    padding: 80px 30px 20px;
    transition: opacity 400ms ease;
}

.hero-title {
    font-size: 35px;
    line-height: 1.2;
    margin-bottom: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    display: block;        /* makes it start on a new line */
    margin-top: 10px;      /* space between title and subtitle */
    font-size: 1.5rem;     /* optional: adjust text size */
    color: #ffffff;           /* optional: make it a bit softer */
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}
  

/* Sections */
.section {
    padding: 60px 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Über mich section - no padding to connect with hero and next section */
#uber {
    padding: 0;
    margin-bottom: 0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text);
}

#ablauf h2 {
    font-size: 21px;
    text-align: left;
    font-weight: 700;
    display: inline-block;
    margin: 0 0 12px;
}

#ablauf {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
}

.preview-section {
    padding: 0;
    margin: 0;
    width: 100%;
    margin-left: 0;
    max-width: none;
}

.preview-section .full-width {
    margin: 0;
}

/* Text Box Styling */
.text-box {
    background: #eaf4fb;
    padding: 25px;
    border-radius: 0;
    margin: 0 0 -1px;
    line-height: 1.7;
    width: 100%;
    margin-left: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.text-box.revealed {
    opacity: 1;
    transform: translateY(0);
}

.text-box p {
    font-size: 16px;
    color: var(--text);
}

.text-box-subtitle {
    display: block;
    margin-top: 12px;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
}

.text-box .fade-line {
    display: block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-box.revealed .fade-line {
    opacity: 1;
    transform: translateY(0);
}

.text-box.revealed .fade-line:nth-child(1) {
    transition-delay: 0.1s;
}

.text-box.revealed .fade-line:nth-child(2) {
    transition-delay: 0.25s;
}

.text-box.revealed .fade-line:nth-child(3) {
    transition-delay: 0.4s;
}

.text-box.revealed .fade-line:nth-child(4) {
    transition-delay: 0.55s;
}

.text-box.revealed .fade-line:nth-child(5) {
    transition-delay: 0.7s;
}

.instant-reveal,
.instant-reveal .fade-line {
    transition: none !important;
    animation: none !important;
}

/* Full Width Images with Scroll Scaling */
.full-width {
    width: 80%;
    height: auto;
    margin: 0 auto 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    object-fit: cover;
    transition: none; /* Remove any transitions for smooth scroll control */
}

/* Static Image - No animations, full device width */
.static-image {
    width: 100%;
    margin: 0;
    margin-left: 0;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.preview-section .static-image {
    height: auto;
    max-height: none;
}

/* Offer Section */
.offer-section {
    background: #ffffff;
    padding-top: 23px;
    padding-bottom: 0;
}

.offer-card {
    max-width: none;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
}

.offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    margin-bottom: 5px;
}

.offer-title--tight {
    margin-bottom: 2px;
}

.offer-price {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 10px 0 24px;
}

.offer-price-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.offer-price-frequency {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(0,0,0,0.65);
    margin-bottom: 6px;
}

.offer-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 100ms ease, color 100ms ease, transform 100ms ease, border-color 100ms ease;
    margin-bottom: 28px;
}

.offer-cta:hover {
    background: transparent;
    color: var(--primary);
    border-color: #004a99;
    transform: translateY(-2px);
}

.offer-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.98rem;
    color: rgba(0,0,0,0.8);
    line-height: 1.45;
}

.offer-list li::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e5f0ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20.485 6.515a1.2 1.2 0 0 0-1.7-.01l-8.063 7.77-3.492-3.17a1.2 1.2 0 1 0-1.6 1.79l4.31 3.904c.45.41 1.14.42 1.6.02l8.93-8.6a1.2 1.2 0 0 0 .01-1.704z' fill='%23337dff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 62%;
    flex-shrink: 0;
}

.payment-info {
    font-size: 0.98rem;
    color: rgba(0,0,0,0.8);
    text-align: left;
    line-height: 1.45;
    margin: -6px 0 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-info span {
    display: block;
}

.payment-info--tight {
    margin: 0 0 4px;
}

/* Steps Section */
.steps {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

#ablauf .steps {
    width: 100%;
    margin: 12px 0 0;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.step-box {
    border-bottom: 1px solid rgba(0,0,0,0.12);
    background: transparent;
}

.step-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.step-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.step-title {
    flex: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    margin-left: 12px;
    transition: transform var(--popup-transition-duration) var(--popup-transition-timing);
}

.step-box.active .step-icon {
    transform: rotate(180deg);
}

.step-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height var(--popup-transition-duration) var(--popup-transition-timing),
        padding var(--popup-transition-duration) var(--popup-transition-timing),
        opacity calc(var(--popup-transition-duration) * 0.75) var(--popup-transition-timing);
}

.step-box.active .step-content {
    padding: 12px 0 18px;
    max-height: 600px;
    opacity: 1;
}

.step-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.step-content ol li {
    margin-bottom: 8px;
}

.step-content ol li:last-child,
.step-content p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.kontakt-section {
    background: white;
    margin: 0;
    padding: 30px 20px 0;
    margin-bottom: 0;
}

.contact-header {
    text-align: left;
    max-width: 640px;
    margin: 0 0 30px;
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-header h2 {
    color: var(--primary);
    margin-bottom: 12px;
    text-align: left;
}

.contact-header p {
    font-size: 16px;
}

.contact-cta {
    max-width: 640px;
    margin: 0 0 24px;
    border-top: 1px solid rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-cta.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-toggle {
    width: 100%;
    border: none;
    background: none;
    color: var(--text);
    padding: 18px 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.contact-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.contact-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    margin-left: 12px;
    transition: transform var(--popup-transition-duration) var(--popup-transition-timing);
    transform: rotate(0deg);
}

.contact-toggle.is-open .contact-toggle__icon {
    transform: rotate(180deg);
}

.contact-dropdown {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    transition:
        max-height var(--popup-transition-duration) var(--popup-transition-timing),
        opacity calc(var(--popup-transition-duration) * 0.75) var(--popup-transition-timing),
        padding var(--popup-transition-duration) var(--popup-transition-timing);
}

.contact-dropdown.is-open {
    opacity: 1;
    padding: 12px 0 18px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.contact-dropdown__intro {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text);
}

.contact-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-dropdown__list li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    position: relative;
    padding-left: 22px;
}

.contact-dropdown__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    max-width: 640px;
    margin: 32px 0 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-info.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.contact-info__label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.contact-info__value {
    font-size: 15px;
    word-break: break-word;
}

.contact-info__value--highlight {
    font-size: 16.5px;
}

.contact-info__divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.12);
    align-self: stretch;
}

@media (max-width: 640px) {
    .contact-info {
        flex-direction: column;
        gap: 24px;
    }

    .contact-info__divider {
        display: none;
    }
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.cta-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: var(--accent);
    color: var(--text);
}

.cta-button.secondary:hover {
    background: var(--secondary);
}

/* Impressum Page */
/* Footer */
.footer {
    background: white;
    color: var(--text);
    text-align: left;
    padding: 32px 20px;
    margin: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow-x: hidden;
}

.footer__row {
    display: flex;
    width: 100%;
    max-width: 640px;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__divider {
    display: block;
    width: 100%;
    max-width: 640px;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
}

.footer__item {
    margin: 0;
    font-size: 15px;
}

.footer__link {
    color: var(--text);
    text-decoration: underline;
}

.footer__link:visited {
    color: var(--text);
    text-decoration: underline;
}

.footer__link:hover,
.footer__link:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .impressum-section {
        padding: 100px 16px 60px;
    }

    .impressum-title {
        font-size: 28px;
    }

    .impressum-heading {
        font-size: 18px;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title { 
        font-size: 48px; 
    }
    
    .hero-subtitle { 
        font-size: 24px; 
    }
    
    .section { 
        padding: 80px 40px; 
    }
    
    .preview-section {
        padding: 0;
        width: 100%;
        margin-left: 0;
    }
    
    .section h2 {
        font-size: 36px;
    }
    
    .nav-overlay a {
        font-size: 28px;
    }
    
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-button {
        width: auto;
        min-width: 200px;
    }

    .impressum-section {
        padding: 140px 40px 100px;
    }

    .impressum-title {
        font-size: 48px;
    }

    .impressum-heading {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .section {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .preview-section {
        max-width: none;
        margin: 0;
        width: 100%;
        margin-left: 0;
    }
    
    .text-box {
        max-width: 800px;
        margin: 0 auto 30px;
    }
}
