/* TRENKLER.ORG - Final Style V9 (Contrast + Link Clarity + Cleaner Dark Sections) */

/* --- 1. BASIS & VARIABLES --- */
:root {
    --primary: #1A3A32;       /* Deep Forest */
    --accent: #C58940;        /* Muted Gold */
    --accent-hover: #D69E5A;

    --bg-body: #FDFBF9;       /* Premium Papier-Weiß */
    --bg-light: #F4F1EE;      /* Sanftes Beige */
    --bg-white: #ffffff;      /* Reinweiß */

    /* Contrast tweaks */
    --text-dark: #232323;     /* darker for better readability */
    --text-light: #3E3E3E;    /* secondary text, not too pale */

    --font-head: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.2);
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
}

/* --- GLOBAL LINKS (clarity + accessibility) --- */
a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(26,58,50,0.35);
}
a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

/* --- 2. ANIMATION UTILITIES --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- 3. TYPOGRAFIE --- */
h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}
h1 { font-size: 3.5rem; margin-bottom: 25px; }
h2 { font-size: 2.5rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* Primary paragraph text should be readable by default */
p { margin-bottom: 20px; color: var(--text-dark); }

/* Optional utility for secondary/meta text */
.muted, .meta, .hint { color: var(--text-light); }

/* --- 4. LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

/* --- DARK SECTIONS (clean & consistent, no opacity washing) --- */
.bg-dark {
    background-color: var(--primary);
    color: #ffffff;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 { color: #ffffff; }

.bg-dark p,
.bg-dark span,
.bg-dark label,
.bg-dark .section-header p { color: rgba(255,255,255,0.92); }

/* Section header text: avoid opacity-based contrast loss */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.section-header p {
    font-size: 1.1rem;
    opacity: 1;
    color: var(--text-light);
}

/* If you have an intro line like "Starten wir den Dialog..." inside dark section */
.bg-dark .section-header p,
.bg-dark .contact-intro {
    color: rgba(255,255,255,0.85);
    opacity: 1;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

/* --- 5. HEADER --- */
header {
    padding: 25px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

/* Logo */
.logo-img { height: 60px; width: auto; transition: transform 0.3s ease; }
.logo-link:hover .logo-img { transform: scale(1.1); }

/* Language switch: keep your design, but ensure contrast */
.lang-switch {
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

/* Language links: override global underline to keep clean UI */
.lang-switch a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0 5px;
    color: rgba(255,255,255,0.92);
}
.lang-switch a:hover {
    color: var(--accent-hover);
    transform: scale(1.15);
}

/* --- 6. HERO SECTION --- */
.hero {
    position: relative;
    height: 95vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary);
    background-image: linear-gradient(rgba(26,58,50,0.85), rgba(26,58,50,0.7)), url('media/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content { max-width: 900px; margin: 0 auto; }
.hero h1 { color: white; }

.hero p {
    font-size: 1.3rem;
    opacity: 1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.95);
}

/* --- 7. BUTTONS --- */
.btn {
    display: inline-flex;
    background-color: var(--accent);
    color: white;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 1.1rem;
        line-height: 1.2;
border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none; /* keep buttons clean */
    transition: transform 0.3s, background 0.3s;

    align-items: center;
    justify-content: center;
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    
    /* WICHTIG: Damit der Text nicht die Farbe des globalen a:hover annimmt */
    color: white !important; 
}

/* --- 8. KARTEN / DNA --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-num {
    display: block;
    font-family: var(--font-head);
    font-size: 4rem;
    color: rgba(197, 137, 64, 0.3); /* Wasserzeichen-Look */
    line-height: 1;
    margin-bottom: 15px;
}

/* --- 9. VENTURES --- */
.venture-item {
    display: block;
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.venture-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.venture-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26,58,50,0.95), transparent);
    padding: 40px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.venture-item:hover .venture-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(197, 137, 64, 0.95) 0%, rgba(26,58,50,0.4) 100%);
}

.venture-overlay span {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
    font-weight: 600;
}
.venture-overlay h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.venture-overlay p { color: rgba(255,255,255,0.95); font-size: 1rem; }


/* --- Link styling on dark backgrounds (improve contrast) --- */
.bg-dark a {
    color: var(--accent);
    text-decoration-color: rgba(197,137,64,0.55);
}
.bg-dark a:hover { color: #ffffff; text-decoration-color: rgba(255,255,255,0.6); }

/* Consent row (checkbox + text) */
.consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.35;
    margin-top: 10px;
}
.consent-row input[type="checkbox"] {
    margin-top: 4px;
    flex: 0 0 auto;
}
.consent-row span {
    flex: 1 1 auto;
    min-width: 0;
}

/* --- 10. FORMULAR & KONTAKT --- */
.form-wrap { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 25px; }

label { display: block; margin-bottom: 8px; font-weight: 600; }

input, textarea {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.95);
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
}

/* Focus: clearer on light backgrounds */
input:focus, textarea:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    background: white;
}

.hp-field { display: none; visibility: hidden; }

/* --- Legal / Pricing Pages --- */
.legal-shell {
    max-width: 920px;
}

.legal-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    padding: 42px 38px;
}

.legal-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-intro > *:first-child,
.legal-block > *:first-child {
    margin-top: 0;
}

.legal-intro ul,
.legal-block ul {
    padding-left: 22px;
    line-height: 1.8;
}

.legal-block + .legal-block {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.legal-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.legal-block h2,
.legal-block h3 {
    margin: 0 0 12px;
}

.legal-block p:last-child,
.legal-block ul:last-child {
    margin-bottom: 0;
}

.price-card {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(244,241,238,0.65) 0%, #ffffff 100%);
}

.price-card__row + .price-card__row {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.price-card__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.price-card__value {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.8;
}

.price-card__cta {
    margin-top: 26px;
}

/* --- 11. FOOTER & MOBILE --- */
footer,
.site-footer {
    background: linear-gradient(180deg, #1b3d35 0%, #16312b 100%);
    padding: 56px 0 42px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.site-footer__brand,
.site-footer__meta {
    min-width: 0;
}

.site-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-footer__eyebrow {
    margin: 0 0 14px;
    color: #f2c27d;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__contact,
.site-footer__company,
.copyright {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
}

.site-footer__contact,
.site-footer__company {
    margin: 0;
}

.site-footer__contact + .site-footer__contact,
.site-footer__company,
.copyright {
    margin-top: 14px;
}

.site-footer__contact a,
.site-footer__links a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.site-footer__contact a:hover,
.site-footer__links a:hover {
    color: #ffffff;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 28px;
}

.site-footer__links a {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration-color: rgba(255,255,255,0.38);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.site-footer__links a:hover {
    text-decoration-color: currentColor;
}

.site-footer__company span {
    display: inline-block;
    margin: 0 10px;
    color: rgba(255,255,255,0.45);
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero { text-align: center; }
    .legal-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
    .price-card {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .site-footer__grid {
        flex-direction: column;
        gap: 28px;
    }
    .site-footer__meta {
        align-items: flex-start;
    }
    .site-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .site-footer__company span {
        margin: 0 8px;
    }
}
/* --- FIX: Button im Kontaktformular zentrieren --- */
.form-wrap .btn {
    display: block;          /* Macht den Button zum Block-Element */
    margin: 30px auto 0;     /* 30px Abstand oben, Rechts/Links automatisch (Mitte) */
    width: fit-content;      /* Nimmt nur so viel Platz wie nötig (nicht 100%) */
}

/* --- Contact form feedback (success/error) --- */
.form-feedback{
    margin: 18px 0 26px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.98);
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 18px 48px rgba(0,0,0,0.26);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
}
.form-feedback strong{
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
}


.bg-dark .form-feedback{
    background: rgba(255,255,255,0.98);
}

.form-feedback__icon{
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,0.08);
}

.form-feedback__text{
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 1.45;
}

.form-feedback.is-success{
    border-left: 6px solid rgba(80, 220, 140, 0.95);
    border-color: rgba(80, 220, 140, 0.35);
    background: linear-gradient(0deg, rgba(80,220,140,0.18), rgba(80,220,140,0.18)), rgba(255,255,255,0.98);
}
.form-feedback.is-success .form-feedback__icon{
    background: rgba(80, 220, 140, 0.22);
    border-color: rgba(80, 220, 140, 0.65);
}

.form-feedback.is-error{
    border-left: 6px solid rgba(255, 170, 70, 0.98);
    border-color: rgba(255, 170, 70, 0.45);
    background: linear-gradient(0deg, rgba(255,170,70,0.20), rgba(255,170,70,0.20)), rgba(255,255,255,0.98);
}
.form-feedback.is-error .form-feedback__icon{
    background: rgba(255, 170, 70, 0.24);
    border-color: rgba(255, 170, 70, 0.70);
}

.form-feedback a{
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(26,58,50,0.35);
}
.form-feedback a:hover{
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}
