/* ============================================================
STYLE GUIDE: Friedemanns Webauftritt
Farben: Tiefseeblau (#1b4965), Küstenblau (#62b6cb), 
        Nordseeblau (#528ead), Sandweiß (#f8f9fa)
============================================================
*/

/* --- 1. GRUNDLAGEN & SCHRIFTEN --- */
@font-face {
    font-family: 'Lato-Italic';
    src: url('fonts/Lato-Italic.ttf');
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('fonts/Lato-Regular.ttf');
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Lato-Regular', sans-serif;
    font-size: 16px;
    color: #2c3e50; /* Schieferblau */
    background-color: #f8f9fa; /* Standard-Hintergrund Sandweiß */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hilfsklassen */
.background-blue { background-color: #1b4965; }
.font-color { color: #f8f9fa; }
.max-width { margin: 0 auto; max-width: 700px; }

/* --- 2. NAVIGATION (STICKY HEADER) --- */
.desktop-nav {
    background-color: rgba(248, 249, 250, 0.35); /* Sandweiß mit Transparenz */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    border-bottom: 3px solid #62b6cb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.desktop-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 15px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: fit-content;
}

.desktop-nav a {
    text-decoration: none;
    color: #1b4965;
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #62b6cb;
}

/* Call-to-Action Button in der Nav */
.desktop-nav .nav-button {
    background-color: #62b6cb;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.desktop-nav .nav-button:hover {
    background-color: #1b4965 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dezentes Logo in der Nav-Leiste */
.header-logo {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 1;
}

/* --- 3. HERO-SECTION (BILD & NAME) --- */
.main-header {
    background-image: url('img/HintergrundHead.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: -70px; /* Navbar-Überlagerung */
    padding-top: 70px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.header-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: auto;
}

.head-portrait {
    height: 500px;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.head-portrait img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.head-text {
    font-family: 'Lato-Italic';
    max-width: 500px;
    padding-bottom: 20px;
    color: #f8f9fa;
}

.head-text h1 {
    font-size: 72px;
    font-weight: 400;
    margin: 0;
    line-height: 1.0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.head-text h2 {
    font-size: 32px;
    font-weight: 400;
    margin: 10px 0 0 0;
    line-height: 1.1;
}

/* --- 4. HAUPTBEREICH (CONTENT) --- */
.main {
    flex: 1; /* Schiebt Footer nach unten */
}

.main-content-wrapper {
    background-color: #528ead; /* Nordseeblau */
    width: 100%;
}

.main-content {
    color: #f8f9fa;
    margin: 0 auto;
    max-width: 700px;
    padding: 60px 20px;
}

.main-content h3 {
    font-family: 'Lato-Italic';
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.main-content p {
    text-align: justify;
    hyphens: auto;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* Signaturbereich mit Kopierschutz */
.signature-container {
    position: relative;
    display: inline-block;
}

.signature-container img {
    display: block;
    width: 170px;
}

.shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
}

/* --- 5. ÜBER MICH & GRID --- */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.text-content {
    flex: 1.5;
    color: #f8f9fa;
}

.text-content h2 {
    font-size: 2rem;
    margin-top: 0;
}

/* --- 6. WIDGETS & EXTERNE INHALTE (Termine / Instagram) --- */
.instagram, .termine {
    width: 100%;
    background-color: #ffffff;
}

.widget-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}
.widget-container-flex {
    max-width: 500px;
}

.termine-header, .kontakt-header {
    background-color: #1b4965;
    color: #f8f9fa;
    text-align: center;
}

.termine-header h4, .kontakt-header h4 {
    font-family: 'Lato-Italic';
    font-size: 32px;
    padding: 20px;
    margin: 0;
}

/* --- 7. CANVA EINBINDUNG --- */
.canva-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background-color: #528ead;
}

.canva-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.canva-embed-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.canva-embed-box iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

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

.canva-footer-link a {
    color: #f8f9fa;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.8;
}

/* --- 8. KONTAKT & SPENDEN --- */
.kontakt {
    background-color: #1b4965;
    padding: 10px;
}

.kontakt-flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
}

.kontakt-info-text {
    flex: 1;
    color: #f8f9fa;
    line-height: 1.6;
}

.donation-card {
    background-color: #f8f9fa;
    color: #1b4965;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-container {
    flex: 1;
    text-align: center;
    border-left: 1px solid #dddddd;
    padding-left: 30px;
}

.qr-code-img {
    width: 150px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

/* --- 9. FOOTER & RECHTLICHES --- */
.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links a, .kontakt-info-text a, .datenschutz a {
    color: #bee9e8;
    text-decoration: underline;
}

.footer-links a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
    color: #ffffff;
}

.impressum, .datenschutz {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
    color: #f8f9fa;
}
.impressum a {
    color: #1b4965;
    text-decoration: underline;
}

.kontakt-daten {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    color: #1b4965;
}

/* --- 10. RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .desktop-nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-logo {
        position: static;
        display: block;
        margin: 10px auto;
        transform: none;
    }

    .header-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .head-portrait { height: 300px; }
    .head-text h1 { font-size: 48px; }

    .kontakt-flex-container, .about-container, .footer-flex, .donation-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qr-code-container {
        border-left: none;
        border-top: 1px solid #dddddd;
        padding: 20px 0 0 0;
        width: 100%;
    }
}