/* Outfit Font - Local Hosting */
/* outfit-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/outfit-v15-latin-300.woff2') format('woff2');
}

/* outfit-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2');
}

/* outfit-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/outfit-v15-latin-500.woff2') format('woff2');
}

/* outfit-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2');
}

/* outfit-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/outfit-v15-latin-700.woff2') format('woff2');
}

:root {
    --primary-yellow: #ebbc26;
    --primary-yellow-light: #f5d56d;
    --secondary-blue: #303f4f;
    --secondary-blue-light: #4a5c6d;
    --accent-green: #4caf50;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-light: #ffffff;
    --bg-offset: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--secondary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--secondary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.header.scrolled .nav-toggle span {
    background: var(--secondary-blue);
}

/* Hero Logo */
.hero-logo {
    max-width: 150px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    border-radius: var(--radius);
}

/* Hero */
.hero {
    height: 90vh;
    position: relative;
    background-image: url('kita_hero_image_optimized.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -80px;
    /* Offset for transparent header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(48, 63, 79, 0.8) 0%, rgba(235, 188, 38, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--secondary-blue);
}

.btn-primary:hover {
    background: var(--primary-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(235, 188, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Contact Strip */
.contact-strip {
    padding: 80px 0;
    background: var(--secondary-blue);
    color: var(--white);
}

.contact-strip a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.contact-strip a:hover {
    color: var(--primary-yellow);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-card {
    text-align: center;
}

.impressum-card {
    text-align: left;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-yellow);
}

/* News Section */
.news {
    padding: 100px 0;
    background: var(--bg-offset);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-yellow);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.news-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-blue);
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--primary-yellow);
    font-weight: 700;
}

/* Info Section / Table */
.info-section {
    padding: 100px 0;
}

.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--secondary-blue);
    color: var(--white);
    font-weight: 600;
    text-align: left;
}

tr:last-child td {
    border-bottom: none;
}

.info-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.alternate-bg {
    background: var(--bg-offset);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.group-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.group-header {
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.group-header.krippe {
    background: var(--accent-green);
}

.group-header.kiga {
    background: var(--primary-yellow);
    color: var(--secondary-blue);
}

.group-header.hort {
    background: var(--secondary-blue);
}

.group-body {
    padding: 30px;
}

.time-block {
    margin-bottom: 20px;
}

.time-block strong {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-blue);
}

.time-block ul {
    list-style: none;
    font-size: 0.95rem;
}

.time-block li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.time-block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
}

.group-body .note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Fees Section */
.fee-notice {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-blue);
    box-shadow: var(--shadow);
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notice-icon svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-blue);
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.fee-table-wrap h3 {
    margin-bottom: 20px;
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 40px;
}

.footer-info .logo-text {
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

.footer-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Legal View Styles */
.legal-view {
    display: none;
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 80vh;
}

body.is-legal-view main {
    display: none;
}

body.is-legal-view .legal-view {
    display: block;
}

.legal-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 40px;
    text-align: center;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.legal-block h3 {
    font-size: 1.1rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.legal-block p {
    color: var(--text-main);
    font-size: 1.05rem;
}

.legal-block a {
    color: var(--secondary-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.legal-block a:hover {
    color: var(--primary-yellow);
}

.legal-source {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.legal-nav-back {
    margin-top: 60px;
    text-align: center;
}

.legal-text-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.legal-sub-section {
    margin-bottom: 50px;
}

.legal-sub-section h3 {
    color: var(--secondary-blue);
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 8px;
    display: inline-block;
}

.legal-sub-section h4 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin: 30px 0 12px;
    font-weight: 600;
}

.legal-sub-section p {
    margin-bottom: 18px;
    color: var(--text-main);
    line-height: 1.7;
}

.legal-sub-section strong {
    color: var(--secondary-blue);
    font-weight: 600;
}

.legal-sub-section a {
    color: var(--secondary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.legal-sub-section a:hover {
    color: var(--primary-yellow);
}