:root {
    --primary: #1a2a3a;
    --accent: #c5a059;
    --bg-light: #fdfbf7;
    --text: #444444;
    --white: #ffffff;
}

/* -- Vollständiges @font-face-CSS */
/* =========================
   ASAP – normal (variable)
   ========================= */
@font-face {
    font-family: 'Asap';
    src: url('meine-fonts/Asap-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

/* =========================
   ASAP – italic (variable)
   ========================= */
@font-face {
    font-family: 'Asap';
    src: url('meine-fonts/Asap-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

/* =========================
   LITERATA – normal (variable)
   ========================= */
@font-face {
    font-family: 'Literata';
    src: url('meine-fonts/Literata-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* =========================
   LITERATA – italic (variable)
   ========================= */
@font-face {
    font-family: 'Literata';
    src: url('meine-fonts/Literata-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}
/* -- Ende Font Definition -- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Asap', sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: lowercase;
}

/* --- Navigation --- */
nav {
    background: var(--white);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    height: 60px;    /* Deine gewünschte Höhe */
    width: auto;     /* Verhindert Verzerrungen */
    display: block;  /* Entfernt den kleinen Leerraum unter Bildern */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--primary);
}

/* --- Hero Section --- */
header {
    padding: 50px 5%;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f4f1ea 100%);
}

h1 {
    font-family: 'Literata', serif;
    font-size: clamp(2.0rem, 3.5vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 500;
}

/* Styling für Text-Links innerhalb des Inhalts */
a {
    color: var(--accent);
    text-decoration: none;      /* Standardmäßig kein Unterstrich */
    font-weight: 600;           /* Etwas präsenter als normaler Text (400) */
    transition: all 0.2s ease;  /* Sanfter Übergang beim Hovern */
}

/* Hover-Effekt für Text-Links */
a:hover {
    text-decoration: underline; /* Unterstrich erscheint nur beim Drüberfahren */
    text-decoration-thickness: 1px; /* Feine Linie für einen edlen Look */
    text-underline-offset: 3px;     /* Abstand zwischen Text und Linie */
    opacity: 0.8;                   /* Ganz leichter visueller Effekt */
}

/* Spezialfall: Falls Links in dunklen Sektionen heller sein sollen (optional) */
.section-dark a {
    filter: brightness(1.2); /* Macht das Gold auf dunklem Grund etwas leuchtender */
}

p {
    margin-bottom: 10px; /* Abstand nach unten zum nächsten Element */
    margin-top: 0;         /* Verhindert doppelte Abstände oben */
}

/* Der letzte Absatz in einer Box braucht keinen Abstand nach unten */
p:last-child {
    margin-bottom: 0;
}

/* --- Content Boxes --- */
.light-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.light-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.light-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.light-card a {
    color: inherit;            
    text-decoration: none;     
    font-weight: inherit;     
    display: block;           
}

.light-card a:hover {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

/* Verlinkte Überschriften */
h3 a {
    text-decoration: none;
    color: var(--primary);
    font-family: 'Literata', serif;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

h3 a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* --- Dark-theme Section --- */
.dark-theme {
    padding: 3rem 5%;
    background-color: var(--primary);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-family: 'Literata', serif;
    font-size: clamp(1.5rem, 2.0vw, 1.5rem);
    font-weight: 700;
    color: var(--bg-light);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.dark-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dark-theme-item {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.dark-theme-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--accent);
}

.dark-theme-item h3 a {
    color: var(--accent);
    font-size: 1.4rem;
}

.dark-theme-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.dark-theme-item a {
    color: inherit;            
    text-decoration: none;     
    font-weight: inherit;     
    display: block;           
}

.dark-theme-item a:hover {
    color: inherit !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

/* --- Footer --- */
footer {
    padding: 1.5rem 5% 0 5%; /*letzte zwei löschen, wenn copywrite drin*/
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid #eee;
}

.footer-links {
    margin-bottom: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Language Switch Styling --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 1rem; /* Abstand zum letzten Menüpunkt */
}

.lang-link {
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    transition: color 0.4s ease;
}

/* Aktive Sprache (Gold) */
.lang-link.active {
    color: var(--accent) !important;
    cursor: default;
}

/* Inaktive Sprache beim Hovern (Dunkleres Gold) */
.lang-link:not(.active):hover {
    color: #a38345 !important; /* Ein dunklerer Goldton */
}

.lang-separator {
    font-size: 0.8rem;
    color: #ccc;
    user-select: none;
}

/* --- Responsive Design --- */
@media screen and (max-width: 960px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: -100%;
        opacity: 0;
        transition: all 0.5s ease;
        background: var(--white);
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
        opacity: 1;
    }

    .menu-toggle {
        display: block;
    }

    /* Hamburger Animation */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Language switch regeln mobile - JETZT KORREKT IN DER MEDIA QUERY */
    .lang-switch {
        margin-left: 0;
        margin-top: 2rem; 
        justify-content: center !important;
        border-top: 1px solid #eee;
        padding-top: 1.5rem;
        width: 100%;
        display: flex;
        gap: 20px;
    }
    
    .lang-link {
        font-size: 1.2rem !important; 
    }
}

/* --- Gemeinsame Layout-Klassen --- */
.container-full {
    max-width: 900px; /* Begrenzt die Textbreite für bessere Lesbarkeit */
    margin: 0 auto;
    padding: 0 5%;
}

.split-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    align-items: top;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
 
.split-text {
    flex: 1; 
    min-width: 300px;
} 

.split-image {
    flex: 1; 
    min-width: 300px;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 2px 7px 10px rgba(0,0,0,0.3);
}

/*FLOAT image */

.float-image {
    float: right; /* Bild rückt nach rechts, Text fließt links vorbei */
    width: 50%; /* Oder ein fester Wert wie 300px */
    margin-left: 2rem; /* Abstand zum Text rechts */
    margin-bottom: 1rem; /* Abstand zum Text unten */
    border-radius: 10px;
    box-shadow: 2px 7px 10px rgba(0,0,0,0.3);
}

.container-full::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 767px) {
    .float-image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }
}


/* --- Sektions-Varianten --- */
.section-light {
    background-color: var(--bg-light);
    color: var(--text);
    padding: 3rem 0;
}

.section-dark {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

.section-dark h2 {
    color: var(--accent);
}

/* BUTTONS - Gemeinsame Button-Basis */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important; /* Verhindert Gold-Link-Styling */
    transition: all 0.3s ease;
    cursor: pointer;
    /* border: none; */
    text-align: center;
}

/* 1. Button Light (Edles Gold) */
.btn-light {
    background-color: var(--accent);
    color: var(--white) !important;
    /* box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2); */

}

.btn-light:hover {
    background-color: #b0770d; /* Ein Nuance kräftigeres Gold */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
    color: var(--white) !important;
}

/* 2. Button Dark (Dunkelblau) */
.btn-dark  {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-dark:hover {
    background-color: #253a50; /* Etwas helleres Blau für Interaktion */
    transform: translateY(-5px);
    /* box-shadow: 0 6px 20px rgba(26, 42, 58, 0.2); */
    color: var(--white) !important;
}

.btn-centered {
    display: block !important; /* Macht den Button zum Block-Element */
    width: fit-content;        /* Sorgt dafür, dass er nicht die ganze Breite einnimmt */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 5-STEPS TIMELINE --- */

.steps-timeline {
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
    padding-left: 10px;
}

.step-block {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

/* Die Bubbles */
.step-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(26, 42, 58, 0.15);
}

/* Die geschwungenen Verbindungslinien */
.step-block:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 30px; /* Mitte der Bubble */
    top: 60px;
    width: 40px;
    height: calc(100% + 4rem - 60px);
    border-left: 3px solid var(--accent);
    border-bottom-left-radius: 40px; /* Erzeugt die Rundung */
    border-top-left-radius: 0;
    z-index: 1;
}

/* Abwechselnde Rundung für einen "S-Kurven" Effekt (optional) 
   Wenn du lieber eine gerade abgerundete Linie willst, lass dies so. 
*/

.step-text h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-family: 'Asap', sans-serif;
    font-weight: 500;
}

.step-text p {
    font-size: 1rem;
    color: var(--text);
    max-width: 500px;
}

/* Mobile Anpassung */
@media screen and (max-width: 600px) {
    .step-block {
        gap: 1rem;
    }
    .step-bubble {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .step-block:not(:last-child)::after {
        left: 25px;
    }
}

/* --- 5-STEPS TIMELINE: ENDE --- */

/* --- FAQ ACCORDION STYLES --- */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem; /* Abstand zwischen den Fragen */
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* Der klickbare Bereich (Frage) */
.faq-item summary {
    list-style: none; /* Entfernt den Standard-Pfeil */
    padding: 1.2rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Safari Fix für den Pfeil */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background-color: #253a50; /* Etwas helleres Blau beim Drüberfahren */
}

/* Das + und - Zeichen */
.faq-icon::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Animation des Zeichens, wenn offen */
.faq-item[open] .faq-icon::after {
    content: "−"; /* Echtes Minus-Zeichen */
    transform: rotate(180deg);
}

/* Sanftes Ausrollen der Antwort */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    background-color: var(--white);
}

.faq-item[open] .faq-content {
    max-height: 500px; /* Groß genug für den Text */
    opacity: 1;
}

.faq-body {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-top: none;
    color: var(--text);
    line-height: 1.8;
}

/* Optional: Goldener Akzent links an der Antwort */
.faq-body {
    border-left: 3px solid var(--accent);
}

/* ----- FAQ Akkordeon ENDE ------ */

/* Social Media Buttons */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;  /* Perfekte Klickfläche für Mobile */
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon svg {
    width: 24px;  /* Die eigentliche visuelle Größe */
    height: 24px;
    fill: var(--text); /* Nutzt deine Standard-Textfarbe */
    transition: fill 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px); /* Kleiner "Aktivierungseffekt" */
}

.social-icon:hover svg {
    fill: var(--accent); /* Färbt das Icon gold beim Drüberfahren */
}

/* --- Mobile Anpassungen & Reordering --- */
@media screen and (max-width: 768px) {
    .split-wrapper {
        flex-direction: column; /* Stapelt Text und Bild */
        gap: 2rem;
        text-align: left;
    }

    /* Diese Klasse im HTML hinzufügen, wenn das Bild oben stehen soll */
    .mobile-reverse {
        flex-direction: column-reverse;
    }
    
    .split-text, .split-image {
        flex: 1 1 100%;
    }
}

/* --- KONTAKTFORMULAR STYLING --- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Asap', sans-serif;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

/* UX-Best Practice: Klarer Fokus-Zustand */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Placeholder Styling */
::placeholder {
    color: #bbb;
    font-size: 0.9rem;
}

/* ------ Kontaktformular ENDE ------- */

/* --- PUBLIKATIONEN STYLING --- */

.pub-list {
    max-width: 900px;
    margin: 0 auto;
}

.pub-entry {
    padding: 2.5rem 0;
    border-bottom: 1px solid #eee; /* Feine Trennlinie */
    transition: all 0.3s ease;
}

.pub-entry:last-child {
    border-bottom: none;
}

/* Die Schlagworte (Tags) */
.pub-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.pub-entry h3 {
    font-family: 'Literata', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pub-entry p {
    color: var(--text);
    max-width: 750px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.pub-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: var(--accent);
    text-decoration: underline !important;
}

/* Anpassung für die dunkle Sektion */
.section-dark .pub-link:hover {
    color: var(--white);
}
/* Liste Werkzeuge Definition mit mobiler Anpassung || Grund-Container für volle Breite */

    /* eigene Überschrift für das Listengrid  */
.list-title {
    color: var(--text); 
    font-family: 'Literata', serif;
    font-size: 1.8rem;
    margin-bottom: 25px; /* Abstand zu den Kacheln */
    padding-left: 5px;   /* Optische Ausrichtung am Goldbalken */
    /*  Optional: border-left: 4px solid #c5a059; Ein kleiner goldener Akzent auch hier */
    padding-left: 15px;
}
/* Umbruch der Liste für ein Raster auf voller Breite */

.list-wrapper-werkzeuge {
    width: 100%;
    margin: 20px 0;
}    

/* Container-Stil: Nutzt CSS Grid für das Layout */
.list-tools {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    
    /* Grid-Setup für Desktop */
    display: grid;
    /* Erzeugt automatisch so viele Spalten wie Platz ist, mindestens 250px breit */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; /* Abstand zwischen den Karten */
}

.list-tools li {
    background-color: var(--bg-light);
    color: var(--text);
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start; /* Aliniert Dreieck oben, falls Text mehrzeilig ist */
    position: relative;
    border-width: 1px 1px 1px 5px;
    border-style: solid;
    border-color:  #c5a059;
    box-shadow: 0 4px 15px var(--bg-light);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Asap';
    font-size: 1.05rem;
    line-height: 1.25;
}

/* Das goldene Dreieck */
.list-tools li::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid #c5a059;
    margin-right: 15px;
    margin-top: 4px; /* Zentriert das Dreieck optisch zur ersten Textzeile */
    flex-shrink: 0;
}

/* Hover-Effekte für Desktop */
@media (hover: hover) {
    .list-tools li:hover {
        transform: translateY(-2px);
        background-color: var(--bg-light);
        border: 4px 1px 1px 1px solid;
        border-color: var(--accent);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    }
}

/* --- MOBILE ANPASSUNG Werzeugliste--- */
@media (max-width: 768px) {
    .list-tools {
        /* Schaltet auf eine einzige Spalte um */
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .list-tools li {
        padding: 20px;
        font-size: 1rem;
    }
}
/* --- SITEMAP LIST (compact, content-width) --- */

.list-sitemap {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 6px; /* tighter spacing */
}

.list-sitemap li {
    display: inline-flex;              /* key: no full-width stretching */
    align-items: center;
    align-self: flex-start;             /* prevents flex container stretch */

    background-color: var(--bg-light);
    color: var(--text);

    padding: 5px 14px;                  /* tighter padding */
    border-left: 3px solid var(--accent);
    border-radius: 8px;

    font-family: 'Asap';
    font-size: 0.95rem;
    line-height: 1.1;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* gold triangle */
.list-sitemap li::before {
    content: "";
    width: 0;
    height: 0;

    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--accent);

    margin-right: 10px;
    flex-shrink: 0;
}

/* link stays inline – hover only on text */
.list-sitemap li a {
    display: inline;          /* critical: not block */
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

/* subtle hover, limited to item width */
@media (hover: hover) {
    .list-sitemap li:hover {
        background-color: #f7f4ee;
        transform: translateX(2px);
    }
}
/* -- End css sitemap Liste -- */