/* ============================================
   Tobias Albers-Heinemann – gemeinsames Stylesheet
   Gilt für index.html, impressum.html, datenschutz.html
   ============================================ */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    /* Kontrast zu --paper angehoben (vorher #7f8c8d ≈ 3,3:1) auf ≈ 5:1 für WCAG-AA-Konformität */
    --text-light: #5c6d78;
    --paper: #f9f7f5;
    --marker-yellow: #f5b700;
    --marker-orange: #e67700;
    --marker-blue: #3498db;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--paper);
}

a {
    color: #555;
    text-decoration: none;
    font-style: italic;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

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

/* Nur per Tastaturfokus sichtbarer "Zum Inhalt springen"-Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 6px 0;
    z-index: 1000;
    font-style: normal;
}

.skip-link:focus {
    left: 0;
}

/* Nur für Screenreader sichtbarer Text, z. B. Hinweis auf neues Fenster */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   INDEX-SEITE: Header
   ============================================ */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary);
}

/* ============================================
   INDEX-SEITE: Hero
   ============================================ */
.hero {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-illustration {
    margin-top: 40px;
}

.underline-marker {
    text-decoration: underline;
    text-decoration-color: var(--marker-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.underline-orange {
    text-decoration: underline;
    text-decoration-color: var(--marker-orange);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.underline-blue {
    text-decoration: underline;
    text-decoration-color: var(--marker-blue);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary);
}

/* ============================================
   ANGEBOTE SECTION - AUFKLAPPBARE KACHELN
   ============================================ */
.angebote {
    padding: 60px 0;
    background: white;
}

.angebote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Aufklappbare Kachel */
.angebot-card {
    position: relative;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--primary);
    transition: all 0.3s;
    overflow: hidden;
}

.angebot-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    z-index: -1;
}

.angebot-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Header der Kachel als Button (Tastatur- und Screenreader-bedienbar) */
.angebot-header {
    display: block;
    width: 100%;
    padding: 30px;
    text-align: center;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.angebot-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.angebot-header h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.angebot-header p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Pfeil-Indikator */
.angebot-toggle {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s;
}

.angebot-card.active .angebot-toggle {
    transform: rotate(180deg);
}

/* Inhalt der Kachel (aufklappbar) */
.angebot-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background: white;
    padding: 0 30px;
}

.angebot-card.active .angebot-content {
    max-height: 2000px;
    padding: 0 30px 30px;
    border-top: 1px dashed var(--secondary);
}

.angebot-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.angebot-content h4 {
    color: var(--primary);
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.angebot-content ul {
    list-style: none;
    padding-left: 0;
}

.angebot-content li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.05);
    color: var(--text);
}

.angebot-content li:last-child {
    border-bottom: none;
}

.angebot-content li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
}

/* ============================================
   ÜBER MICH
   ============================================ */
.ueber-mich {
    padding: 60px 0;
    background: transparent;
}

.ueber-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ueber-text h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.ueber-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.ueber-text a:hover {
    color: var(--secondary);
}

.ueber-illustration {
    text-align: center;
}

/* ============================================
   REFERENZEN / TESTIMONIAL-SLIDER
   ============================================ */
.referenzen {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
}

.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.speech-bubble {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    max-width: 500px;
    border: 2px solid var(--primary);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--primary);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    z-index: -1;
}

.speech-bubble p {
    margin-bottom: 10px;
    color: var(--text);
    font-style: italic;
    line-height: 1.8;
}

.speech-bubble .author {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    margin-top: 10px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: white;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

/* Pause/Fortsetzen-Button für den automatisch laufenden Slider (WCAG 2.2.2) */
.slider-pause-btn {
    border-radius: 50px;
    border: 2px solid var(--secondary);
    background: white;
    color: var(--secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-pause-btn:hover {
    background: var(--secondary);
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--secondary);
}

/* ============================================
   KONTAKT
   ============================================ */
.kontakt {
    padding: 60px 0;
    text-align: center;
}

.kontakt h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.kontakt p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    margin-top: 10px;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER (alle Seiten)
   ============================================ */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
}

.footer-links {
    margin-top: 15px;
    text-align: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-style: normal;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    color: var(--text-light);
}

.sketchnote-line {
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' stroke='%232c3e50' stroke-width='1' fill='none'/%3E%3C/svg%3E") repeat-x;
    height: 20px;
    width: 100%;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .ueber-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .slider-nav {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .speech-bubble {
        padding: 20px;
    }

    .speech-bubble::after {
        bottom: -10px;
        left: 20px;
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
    }

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

/* ============================================
   UNTERSEITEN: Impressum / Datenschutzerklärung
   ============================================ */
.legal-page {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-page h1 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
}

.legal-page h2 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.legal-page h3 {
    color: var(--primary);
    margin: 25px 0 10px;
    font-size: 1.2rem;
}

.legal-page h4 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.legal-page p {
    margin-bottom: 15px;
    color: var(--text);
}

.legal-page ul {
    list-style: none;
    padding-left: 0;
}

.legal-page li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.05);
}

.legal-page li:last-child {
    border-bottom: none;
}

.legal-page li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
}

.legal-page a {
    color: var(--secondary);
    font-style: normal;
}

.contact-info {
    margin: 20px 0;
    font-style: normal;
}

.contact-info p {
    margin: 8px 0;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background: var(--light);
    border-radius: 6px;
    color: var(--primary);
    font-style: normal;
    transition: background 0.3s;
}

.back-link:hover {
    background: var(--secondary);
    color: white;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 20px 15px;
    }
}
