:root {
    --primary-color: #FBBA00;
    --primary-hover: #e5a900;
    --text-color: #333333;
    --bg-gradient-start: #fffdf7;
    --bg-gradient-mid: #ffffff;
    --bg-gradient-end: #fff4e1;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-main: 'Museo Sans W03_500', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Museo Sans W03_900', sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-image: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 18px; /* Mobile readable */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Desktop Nav */
.nav-desktop {
    display: none; /* Hidden on mobile */
}

.nav-desktop ul {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    left: 0;
    transition: transform 0.2s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu Overlay */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.nav-mobile.active {
    transform: translateY(0);
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.nav-mobile a {
    font-size: 18px;
    font-weight: 600;
    display: block;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding: 40px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 200px;
    transform: rotate(-3deg);
}

.hero-badge img {
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero h1 span {
    background: var(--primary-color);
    padding: 0 10px;
    border-radius: 4px;
    color: white;
    display: inline-block;
    transform: skew(-2deg);
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(251, 186, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 186, 0, 0.6);
}

/* Booking Section */
#online-nachhilfe {
    padding: 60px 0;
    position: relative;
}

.online-banner {
    text-align: center;
    margin-bottom: 50px;
}

.online-banner h2 {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-icon {
    display: none; /* Hide old icon for cleaner look */
}

/* Booking Carousel */
.booking-carousel-wrapper {
    position: relative;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow: hidden;
}

.booking-container {
    display: flex;
    gap: 30px;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
}

.booking-container:active {
    cursor: grabbing;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-nav-prev {
    left: 10px;
}

.carousel-nav-next {
    right: 10px;
}

/* Mobile: Show 1 card at a time */
.booking-box {
    flex: 0 0 calc(100% - 20px);
    scroll-snap-align: center;
}

/* Modern Booking Card */
.booking-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Tablet: Show 2 cards */
@media (min-width: 768px) {
    .booking-box {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Desktop: Show 3 cards */
@media (min-width: 1024px) {
    .booking-box {
        flex: 0 0 calc(33.333% - 20px);
    }
}

.booking-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.booking-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.booking-date, .booking-time {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 15px 0;
    display: block;
}

.booking-description {
    margin: 20px 0;
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    line-height: 1.6;
}

.booking-deadline {
    font-size: 0.85rem;
    color: #667;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.booking-spots {
    background: #f0f8ff;
    color: #2980b9 !important;
    padding: 8px !important;
    border-radius: var(--radius-sm);
    margin: 10px 0 !important;
    font-weight: 600;
}

.booking-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 10px 0 8px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.booking-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--text-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-button:hover {
    background: var(--primary-color);
    transform: scale(1.02);
}

.booking-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Fully Booked State */
.booking-box.fully-booked {
    opacity: 0.8;
    background: #fcfcfc;
    border-color: #eee;
}

.booking-box.fully-booked::after {
    content: 'Ausgebucht';
    position: absolute;
    top: 25px;
    right: -35px;
    background: #e74c3c;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.booking-button.sold-out {
    background: #e0e0e0;
    color: #999;
}

/* Angebot Section (Cards) */
#angebot {
    padding: 60px 0;
    background: white;
}

#angebot > div {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.angebot-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--primary-color);
    transition: transform 0.3s;
}

.angebot-card:hover {
    transform: translateY(-5px);
}

.angebot-card h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 25px;
    background: none;
    box-shadow: none;
    padding: 0;
    color: var(--text-color);
    text-align: left;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    width: 100%;
}

.angebot-card article p {
    margin-bottom: 15px;
}

.angebot-card ul {
    margin-top: 20px;
}

.angebot-card li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.angebot-card li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.2em;
}

/* Lernerfolg List - Two Columns */
.lernerfolg-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 40px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .lernerfolg-list {
        grid-template-columns: 1fr 1fr;
    }
}

.toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    padding: 15px 0;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle:hover {
    color: var(--primary-hover);
}

/* Contact Section */
#kontakt {
    padding: 80px 0;
    background: var(--bg-gradient-end);
}

.kontakt-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kontakt-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.kontakt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kontakt-info {
    padding: 40px;
    text-align: center;
}

.kontakt-info h1 {
    background: none;
    box-shadow: none;
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding: 0;
}

.kontakt-info article p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.kontakt-mail {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.kontakt-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.kontakt-button {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--text-color);
    transition: all 0.2s;
}

.kontakt-button--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.kontakt-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kontakt-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.inline-social {
    height: 32px;
    width: auto;
    transition: transform 0.2s;
}

.inline-social:hover {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav-desktop { display: block; }
    
    .hero { padding: 80px 0; }
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-text {
        flex: 1;
        padding-right: 40px;
    }
    
    .hero-image-wrapper {
        flex: 1;
    }
    
    .hero h1 { font-size: 3.5rem; }
    
    .kontakt-card {
        flex-direction: row;
    }
    
    .kontakt-image {
        width: 40%;
        height: auto;
    }
    
    .kontakt-info {
        width: 60%;
        text-align: left;
    }
    
    .kontakt-actions, .social-icons {
        justify-content: flex-start;
    }
}

/* Fix for white icons in Process section */
#prozess .booking-box figure img {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: inline-block;
}

/* Hero Banner Overlay */
.hero-banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-banner-wrapper .familie-bg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.hero-banner-wrapper .erfolg-overlay {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    width: 45%;
    height: auto;
}

/* Booking Modal Styles */
.booking-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.booking-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.booking-modal-content {
	background: #ffffff;
	margin: 20px auto;
	padding: 40px;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	width: 95%;
	max-width: 800px;
	max-height: 95vh;
	overflow-y: auto;
	position: relative;
	animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal,
.booking-modal * {
	float: none !important;
	box-sizing: border-box !important;
}

.booking-modal-content {
	width: calc(100% - 48px) !important;
	max-width: 920px !important;
	margin: 10px auto !important;
	padding: 18px !important;
	left: 0 !important;
	right: 0 !important;
}

.booking-modal .sumup-widget-shell {
	max-width: 100% !important;
	padding: 10px !important;
	margin: 0 auto !important;
	background: transparent !important;
	box-shadow: none !important;
}

.booking-modal .sumup-widget-wrapper,
.booking-modal .sumup-scale {
	width: 100% !important;
	overflow: visible !important;
}

.booking-modal .sumup-widget-iframe {
	width: 100% !important;
	min-height: 640px !important;
	max-height: 85vh !important;
	display: block !important;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.booking-modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: normal;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
	border-radius: 50%;
	background: transparent;
}

.booking-modal-close:hover {
	color: #333;
	background: #f0f0f0;
	transform: rotate(90deg);
}

.booking-modal.processing .booking-modal-content {
	pointer-events: none;
}

.booking-modal.processing .booking-modal-close {
	opacity: 0.25;
	pointer-events: none;
}

.booking-modal-content h2 {
	font-family: var(--font-heading);
	font-size: 24px;
	color: #333333;
	background: linear-gradient(135deg, var(--primary-color) 0%, #FFA500 100%);
	padding: 10px 20px;
	border-radius: 8px;
	margin: 0 0 16px 0;
	text-align: center;
	display: block;
}

.booking-details-display {
	background: rgba(251, 186, 0, 0.08);
	border-left: 4px solid var(--primary-color);
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.booking-details-display h3 {
	font-family: var(--font-main);
	font-size: 18px;
	color: #333333;
	margin: 0 0 10px 0;
}

.booking-details-display p {
	font-family: var(--font-main);
	font-size: 14px;
	color: #666666;
	margin: 4px 0;
	line-height: 1.5;
	text-align: left;
}

.booking-details-display .price-highlight {
	font-size: 18px;
	color: var(--primary-color);
	font-weight: bold;
	margin-top: 8px;
}

.form-group {
	margin-bottom: 8px;
}

.form-group label {
	display: block;
	font-family: var(--font-main);
	font-size: 14px;
	color: #333333;
	margin-bottom: 6px;
	font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: var(--font-main);
	font-size: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	box-sizing: border-box;
	transition: all 0.3s ease;
	background: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(251, 186, 0, 0.15);
}

.booking-submit-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.booking-submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#paypalButton {
    background-color: #0070ba !important;
}

#paypalButton:hover {
    background-color: #005ea6 !important;
}

/* Site Modal (Privacy) */
.site-modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.site-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}
