/* =========================================================
   1. VARIABLEN & BASIS (Hell- / Dunkelmodus)
   ========================================================= */
:root {
    --bg-color: #f8f3f3;
    --panel-color: #e2d6c9;
    --text-color: #0f0f0f;
    --text-color-p: #555;
    --header-text: #ffffff;
    --footer-bg: #222;
    --btn-color: #555;
}

body.light-mode {
    --bg-color: #0f0f0f;
    --panel-color: #e2d6c9;
    --text-color: #e0e0e0;
    --text-color-p: #888;
    --header-text: #ffffff;
    --footer-bg: #222;
    --btn-color: #f8f3f3;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw; /* Erzwingt exakte Bildschirmbreite */
    overflow-x: hidden; 
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* =========================================================
   2. HEADER & NAVIGATION
   ========================================================= */
.site-header {
    position: relative; /* Header schwebt ÜBER dem Bild */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/schreibmaschiene.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3); 
    background-blend-mode: overlay;    
    z-index: -1;
    transform: scale(1.1);
    clip-path: inset(0 0 0 0 round 0);
    overflow: hidden;
}

.site-title, .main-nav {
    position: relative;
    z-index: 1;
}

.main-nav { 
    display: flex; 
    flex-direction: row;
    position: static;
    gap: 1rem; 
    align-items: center;
    flex-wrap: nowrap; /* Button nicht umbrechen */
}
.main-nav a { 
  color: var(--header-text); 
  text-decoration: none; 
  text-transform: uppercase; 
  font-size: 0.8rem; 
}

.theme-btn, #lang-switch {
    background: transparent;
    border: 1px solid var(--header-text);
    color: var(--header-text);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.site-title h1 {
    font-size: 1.2rem; 
    margin: 0;
    color: var(--header-text);
}

/* =========================================================
   3. HERO-LAYOUT (Schräge & Hintergrund)
   ========================================================= */
.hero-layout {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background-color: var(--bg-color);
    display: flex; /* Flexbox aktivieren */
    /* WICHTIG: Zentrierung steuern */
    align-items: center; /* Vertikal zentrieren */
    justify-content: flex-start;
}

/* Das Bild: Hier ist die scharfe Schräge */
.hero-bg-img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    /* Die Schräge: Wenn es nicht schräg genug ist, ändere 50% zu 20% */
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0% 100%); 
    z-index: 1;
}

.hero-shadow-caster {
    position: absolute;
    top: 0; 
    left: 0;
    width: 101%; /* Leicht größer, damit der Schatten rechts rauskommt */
    height: 100%;
    /* WICHTIG: Exakt derselbe Clip-Path wie beim Bild */
    clip-path: polygon(0 0, 100% 0, 20% 100%, 0% 100%); 
    background-color: transparent;
    /* Hier passiert das Wunder */
    box-shadow: 15px 0px 30px rgba(0,0,0,1.3); /* Ein harter Schatten nach rechts */
    z-index: 1; /* Zwischen Bild und Panel */
}

/* Panel: Liegt dahinter */
.dark-mode-panel {
    position: absolute;
    right: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background: var(--panel-color);
    z-index: 0;
}

.text-side {
    position: relative;
    z-index: 2;
    padding: 15%;
    width: 35%;
    color: var(--header-text);
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #555;
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-text {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color) !important;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    background: var(--btn-color);
    color: var(--text-color) !important;
}

/* Container und Hero */
.home-container { max-width: 900px; margin: 100px auto; padding: 0 5%; }
.home-hero { text-align: center; margin-bottom: 120px; }
.home-hero h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 20px; }
.lead { font-size: 1.5rem; color: var(--text-color); margin-bottom: 40px; }

/* Das Grid ohne Rahmen oder Hintergründe */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.preview-item {
    display: flex;        
    flex-direction: column;
}

.preview-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--text-color); /* Starke, minimalistische Linie */
    padding-bottom: 10px;
    display: inline-block;
}

.preview-item p {
   color: var(--text-color-p);
   margin-bottom: 20px;
   flex-grow: 1;
}
.preview-item a { color: var(--text-color-p); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.preview-item .btn-text {
    align-self: flex-start; 
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-grid { grid-template-columns: 1fr; gap: 40px; }
    .home-hero h1 { font-size: 2.5rem; }
}

/* =========================================================
   4. FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--footer-bg);
    padding: 25px 5%;
    color: var(--panel-color); 
    text-align: center;
    position: relative; /* Sorgt dafür, dass er brav unten steht */
    z-index: 2;
}

.site-footer a {
    color: var(--panel-color);
    text-decoration: none;
}

/* =========================================================
   MOBILE ANPASSUNGEN
   ========================================================= */
@media (max-width: 768px) {
    /* Header: Alles untereinander oder kompakt */
    .site-header { padding: 1rem; }

    /* Menü verstecken (wird per JS eingeblendet) */
    .main-nav {
        display: none; /* Erstmal ausblenden */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.9);
        padding: 40px 0;
        text-align: center;
    }
    
    /* Burger-Button anzeigen */
    .menu-toggle { display: block; cursor: pointer; background: none; border: none; }
    .menu-toggle span { display: block; width: 25px; height: 3px; background: var(--header-text); margin: 5px; }

    /* Text im Hero zentrieren */
    .text-side {
        width: 90% !important;
        text-align: center;
        padding: 60px;
        margin: 0 auto; /* Zentriert den Textblock */
    }

}

/* =========================================================
   ÜBER MICH - LAYOUT
   ========================================================= */
.about-container {
    max-width: 900px; /* Text nicht zu breit machen für bessere Lesbarkeit */
    margin: 100px auto 50px auto; /* Abstand nach oben zum Header */
    padding: 0 5%;
    color: var(--text-color);
}

.about-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    border-left: 4px solid #555; /* Akzentlinie */
    padding-left: 20px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #aaa;
}

/* Gitter für Text-Block und Zitat */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.quote-box {
    background: var(--panel-color);
    padding: 30px;
    border-radius: 10px;
    font-style: italic;
    border-left: 3px solid #fff;
}

/* Expertise Bereich */
.about-expertise {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.about-expertise h2 {
    margin-top: 0;
    color: var(--text-color);
}

/* Responsive Anpassung für Mobile */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Alles untereinander auf dem Handy */
    }
    
    .about-hero h1 {
        font-size: 1.8rem;
    }
}
.image-block {
    position: relative;
}

.img-wrapper {
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.about-profile-img {
    width: 100%;
    display: block; /* Entfernt kleine Lücken unter dem Bild */
    transition: 0.3s;
}

/* Parallax-Sektion: Das Bild fixieren */
.parallax-section {
    position: relative;
    width: 100%;
    left: 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/schreibmaschiene.jpg');
    background-attachment: fixed; /* Der magische Parallax-Effekt */
    background-size: cover;
    background-position: center;
    margin: 40px 0;
}

/* Das Zitat-Box-Design für auf dem Bild */
.parallax-section .quote-box {
    background: rgba(0, 0, 0, 0.6); /* Halbtransparenter dunkler Hintergrund */
    backdrop-filter: blur(5px);    /* Glas-Effekt */
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 40px;
    max-width: 700px;
    color: #ffffff;                /* Weißer Text */
    text-align: center;
}

.parallax-section h3 {
    font-size: 1.5rem;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================
   ANGEBOT - MODERNES DESIGN
   ========================================================= */
.angebot-container {
    max-width: 800px;
    margin: 100px auto 50px auto;
    padding: 0 5%;
}

/* Jeder Leistungsblock als eigenständiger Bereich */
.service-section {
    margin-bottom: 80px;
    padding-top: 40px;
    border-top: 1px solid #333; /* Dezente Linie als Trenner */
}

/* Typografie-Anpassung für bessere Lesbarkeit */
.service-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* "Das ist enthalten" - Schlichter Look */
.service-list-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color-p);
    margin: 20px 0 10px 0;
    padding-top: 20px;
}

.service-section ul {
    list-style: none;
    padding: 0;
}

.service-section li {
    padding: 8px 0;
    border-bottom: 1px solid var(--text-color-p);
    color: var(--text-color-p);
}

/* Die "Mehrwert-Box" (Impact) ohne Kasten */
.impact-text {
    margin-top: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--text-color-p);
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1rem;
}

.service-offer {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--text-color-p); /* Dezente Linie als Trenner */
    padding-bottom: 20px;
  }

.service-option {
    display: flex;           
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 30px;               
    background: transparent;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
}

.service-block h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-block p {
    color: var(--text-color-p);
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-block {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .service-list-title {
        text-align: center;
    }
    .service-section li {
        text-align: center;
    }
}

/* =========================================================
   Portfolio
   ========================================================= */

.portfolio-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 5%;
}

.portfolio-hero {
    text-align: center;
    margin-bottom: 100px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Links Bild, Rechts Text */
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.portfolio-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Moderner Schatten */
}

.portfolio-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 4px solid #000;
    padding-left: 20px;
}

/* Responsive: Auf dem Handy untereinander */
@media (max-width: 768px) {
    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* =========================================================
   Kontaktseite
   ========================================================= */
.contact-page { 
  max-width: 900px; 
  margin: 100px auto; 
  padding: 0 5%; 
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Formular darf etwas breiter sein */
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.contact-form label { 
  display: block; 
  margin: 15px 0; 
  font-weight: bold; 
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--panel-color);
    border-radius: 5px;
    background: var(--panel-color);
}

.contact-method {
    display: flex;
    flex-direction: column; /* Bringt alles untereinander */
}

/* Entfernt die blaue Farbe und den Unterstrich von allen Links im Kontaktbereich */
.contact-method a {
    color: inherit;         /* Übernimmt die Farbe vom umgebenden Text (meist schwarz/dunkel) */
    text-decoration: none;  /* Entfernt den Unterstrich */
    font-weight: 500;
}

/* Optional: Ein kleiner Hover-Effekt, damit man sieht, dass es ein Link ist */
.contact-method a:hover {
    text-decoration: underline;
    opacity: 0.7;
}

.contact-method h4 {
    color: inherit; 
    font-weight: 600;
    padding-bottom: 0px;
}

.contact-hours {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contact-page { 
        align-items: center;     
    }
    .contact-grid { 
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 0 20px;
      box-sizing: border-box;
      width: 100%;
     }
     .contact-form {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;
    }
}

/* =========================================================
   Rechtstexte
   ========================================================= */
.legal-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 24px;
    color: #1f1f1f;
    font-family: inherit;
    line-height: 1.75;
    font-size: 16px;
}


.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 60px;
}


.legal-section {
    margin-bottom: 70px;
}


.legal-page h2 {
    font-size: 2rem;
    margin: 50px 0 30px;
}


.legal-page h3 {
    font-size: 1.35rem;
    margin: 40px 0 18px;
}


.legal-page p {
    margin-bottom: 20px;
}


.legal-page ul {
    margin: 20px 0 30px;
    padding-left: 25px;
}


.legal-page li {
    margin-bottom: 12px;
}


.legal-page address {
    font-style: normal;
    background: #f7f5f0;
    padding: 25px;
    border-radius: 14px;
    margin-top: 20px;
}


@media (max-width: 768px) {

    .legal-page {
        margin: 40px auto;
        font-size: 15px;
    }

    .legal-page h1 {
        margin-bottom: 40px;
    }

    .legal-page h2 {
        font-size: 1.6rem;
    }

    .legal-page h3 {
        font-size: 1.15rem;
    }

}