﻿:root {
  /* Farben */
  --pho-purple: #7a1c5d;
  --pho-light: #fdf4fa;
  --accent: #ff6b35;
  
  --bg: #f4f4f5; 
  --card-bg: #ffffff;
  
  --text-main: #1f1f24;
  --text-muted: #66666e;
  
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(122, 28, 93, 0.1);
}

[data-theme="dark"] {
  --bg: #0f0f12;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --pho-light: #1a1a20; 
  --card-bg: #18181e;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
  /* NEU: Platz für den Fixed Header schaffen (muss hier hin!) */
  padding-top: 90px; 
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header (FIXED) --- */
.site-header {
  padding: 1rem 0;
  
  /* ÄNDERUNG: Von sticky auf fixed */
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  
  z-index: 1000; /* Hoch genug für alles */
  
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  
  /* Hilft bei Android-Flackern */
  -webkit-transform: translateZ(0);
  transform: translateZ(0); 
}
[data-theme="dark"] .site-header { 
  background: rgba(15, 15, 18, 0.85); 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ... Gelöscht da Logo eingefügt ... */
/* .brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-pho { color: var(--pho-purple); }
a.brand { text-decoration: none; color: inherit; display: block; } 
 */
 
 
/* --- Header Logo Anpassungen --- */
/* Der Link, der das Logo umschließt */
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Das Logo-Bild selbst */
.brand-logo-img {
  max-height: 100px; /* Begrenzt die Höhe, damit der Header nicht zu groß wird */
  width: auto;      /* Die Breite passt sich proportional an */
  height: auto;
  transition: opacity 0.3s ease; /* Sanfter Wechsel */
}
/* Standard: Helles Logo AN, Dunkles Logo AUS */
.logo-light { display: block !important; }
.logo-dark { display: none !important; }

/* Dark Mode: Helles Logo AUS, Dunkles Logo AN */
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
 
 
/* ... (Rest des Header/Nav-Stylings) ... */
.nav-area { display: flex; gap: 1.5rem; align-items: center; }
.nav { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
.nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--pho-purple); }

.nav-controls button {
  background: none; border: 1px solid var(--text-muted); 
  color: var(--text-main); padding: 0.4rem; border-radius: 6px; cursor: pointer;
}
.nav-toggle { display: none; }


/* --- Hero Section (Der Hingucker) --- */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--pho-light) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(122, 28, 93, 0.1);
  color: var(--pho-purple);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-claim { font-size: 2.8rem; margin: 0 0 1rem; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-button {
  padding: 0.8rem 1.5rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: transform 0.2s; color: var(--pho-purple);;
}
.cta-button.primary { background: var(--pho-purple); color: #fff; box-shadow: 0 4px 15px rgba(122, 28, 93, 0.3); }
.cta-button.secondary { background: transparent; border: 2px solid var(--pho-purple); color: var(--pho-purple); }
.cta-button:hover { transform: translateY(-2px); }

.hero-image-wrapper { position: relative; text-align: center; }
.hero-img {
  width: 80%;
  max-width: 300px;
  height: auto; /* WICHTIG: Erhält die Proportionen */
  border-radius: 20px;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  position: relative;
  z-index: 2;
}
/* Deko-Element hinter dem Bild */
.blob-bg {
  position: absolute; top: 10%; right: 5%; width: 300px; height: 300px;
  background: var(--pho-purple); opacity: 0.1; border-radius: 50%; z-index: 1;
  filter: blur(40px);
}

/* --- Service Liste als GRID (Wichtig!) --- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.service-list li {
  list-style: none;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 3.5rem; /* Platz für Icon */
}

/* Wir simulieren ein Icon mit CSS Pseudo-Element */
.service-list li::before {
  content: "✓";
  position: absolute; left: 1.5rem; top: 1.5rem;
  width: 24px; height: 24px; background: rgba(255, 107, 53, 0.15); color: var(--accent);
  border-radius: 50%; text-align: center; line-height: 24px; font-weight: bold; font-size: 0.8rem;
}

.service-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--pho-purple);
}

/* --- Über Mich & Vorteile --- */
.section { padding: 4rem 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image img { 
  width: 100%; 
  height: auto; /* WICHTIG: Erhält die Proportionen */
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  border: 1px solid var(--pho-purple);
}

/* --- VORTEILE Section (Bild Oben, Text Unten) --- */

.benefit-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 2rem; 
}

.benefit-item {
  background: var(--card-bg); 
  padding: 0; 
  border-radius: var(--radius); /* Hier ist der Radius definiert (z.B. 12px) */
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; 
  
  /* WICHTIG: Das sorgt dafür, dass nichts über die runden Ecken hinausragt */
  overflow: hidden; 
  
  /* Hilft manchen Browsern, das 'overflow: hidden' auch bei Animationen zu respektieren */
  z-index: 1; 
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--pho-purple);
}

/* --- Bild-Bereich (Bild Oben) --- */
.benefit-img-wrapper {
    width: 100%;
    height: 180px; 
    overflow: hidden; 
    transition: transform 0.3s ease;

    /* NEU: Wir erzwingen die Rundung oben, passend zur Karte */
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.benefit-item:hover .benefit-img-wrapper {
    transform: scale(1.03);
}

.benefit-top-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    
    /* Sicherstellen, dass das Bild selbst keine Ecken überdeckt */
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}


/* --- Text-Bereich (Inhalt Unten) --- */
.benefit-content {
    padding: 1.5rem; /* Innenabstand für den Text */
    text-align: center;
}

.benefit-content h4 {
    color: var(--pho-purple); /* Überschrift wieder in lila (oder deiner Wahl) */
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.benefit-content p {
    color: var(--text-muted);
    margin: 0;
}

/* --- Mobile --- */
@media (max-width: 900px) {
  /* Mobile Header muss weniger Platz fressen */
  body {
    padding-top: 70px; /* Weniger Abstand im Body auf Mobilgeräten */
  }

/* Layout Anpassung Header: Wir nutzen Grid für die Zentrierung */
  .header-inner {
    display: grid;
    /* 3 Spalten: Platzhalter | Zentriertes Logo | Menü rechts */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
  }

  /* Logo kommt in die mittlere Spalte und wird zentriert */
  .logo-area {
    grid-column: 2;
    justify-self: center;
  }

  /* Menü kommt in die rechte Spalte und wird rechtsbündig */
  .nav-area {
    grid-column: 3;
    justify-self: end;
    gap: 0.5rem;
  }
  
  /* Menü Button sichtbar machen */
  .nav-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2000;
  }

/* Das eigentliche Menü (standardmäßig versteckt/rechts draußen) */
  #primaryNav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    
    background: var(--card-bg);
    
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem;
    z-index: 1000;
    
    /* Animation: Slide in von rechts */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  }

  /* Wenn JS das Attribut setzt: Reinschieben */
  #primaryNav[data-visible="true"] {
    transform: translateX(0%);
  }

  /* Links im mobilen Menü größer machen */
  #primaryNav li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
    width: 100%;
  }
  #primaryNav a {
    font-size: 1.2rem;
    display: block;
  }

  /* Restliche Mobile Anpassungen */
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-claim { font-size: 2rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .cta-row { justify-content: center; }
  
  /* Bild kleiner und mittig */
  .hero-image-wrapper { margin-top: 2rem; }
  .hero-img { 
    width: 60%; 
    transform: rotate(0deg); 
    max-width: 250px; /* KORREKTUR: "x" zu "px" geändert */
    height: auto;
  }
  
  .split { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  
  
  /* NEU: Weniger Polsterung oben/unten in der Hero-Sektion */
  .hero-section {
    padding-top: 1rem;
    padding-bottom: 2rem; 
    min-height: auto;
  }

  /* NEU: Elemente (Text und Bild) näher zusammenrücken */
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 1.5rem;
  }

  /* NEU: Schriftgröße der Überschrift auf Handy etwas kleiner, spart Platz */
  .hero-claim {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-sub { margin: 0 auto 1.5rem; }

  .cta-row { justify-content: center; }
  
  /* NEU: Das Bild braucht keinen extra Abstand nach oben mehr */
  .hero-image-wrapper { 
    margin-top: 0.5rem; 
  }
  
  .hero-img { 
    width: 60%; 
    transform: rotate(0deg); 
    max-width: 250px;
  }
  
  .split { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  
  /* Mobile Anpassung Kontakt & Footer */
  .contact-card { padding: 2rem 1.5rem; }
  .contact-actions { flex-direction: column; }
  .cta-button { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* --- Leistungen Section mit Bild (Bild Links) --- */
.split-services {
  display: grid;
  /* Bild (0.8 Teile) | Text (1.2 Teile) */
  grid-template-columns: 0.8fr 1.2fr; 
  align-items: center;
  gap: 3rem;
}

.services-content {
  /* Abstand nach links zum Bild hin */
  padding-left: 2rem;
}

.services-image-wrapper {
  text-align: center;
  position: relative;
}

.services-img {
  width: 100%;
  max-width: 400px; 
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Lila Rahmen als Akzent */
  border: 4px solid var(--pho-purple); 
  /* Leichte Drehung für dynamischen Look (optional) */
  transform: rotate(-2deg); 
  transition: transform 0.3s ease;
}

.services-img:hover {
  transform: rotate(0deg) scale(1.02);
}



/* Animationen */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wir geben den Sections eine Klasse für die Animation */
section {
  animation: none; /* Deaktivieren wir, da wir jetzt die .reveal Klasse nutzen */
}

/* --- SCROLL ANIMATION (Reveal) --- */

/* Startzustand: Unsichtbar und etwas weiter unten */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Endzustand: Sichtbar und am richtigen Platz */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Kleiner Bonus: Wenn man prefers-reduced-motion im OS eingestellt hat, Animation ausschalten */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Kontakt Karte Styling --- */
.contact-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Ein kleiner lila Balken oben als Deko */
.contact-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--pho-purple), var(--accent));
}

.contact-header { margin-bottom: 2rem; }
.contact-info { 
  font-style: normal; 
  font-size: 1.1rem; 
  margin-bottom: 2rem; 
  line-height: 1.8; 
  color: var(--text-muted);
}
.contact-info strong { color: var(--text-main); font-size: 1.2rem; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.social-links a { 
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.2s;
}
.social-links a:hover { color: var(--pho-purple); }

/* Mobile Anpassung Kontakt */
@media (max-width: 600px) {
  .contact-card { padding: 2rem 1.5rem; }
  .contact-actions { flex-direction: column; }
  .cta-button { width: 100%; text-align: center; color: var(--pho-purple);}
}
/* --- Footer Styling --- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  background-color: var(--card-bg);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info { display: flex; flex-direction: column; gap: 0.2rem; }
/* Der Haupt-Container dient nur als Flex-Basis oder Wrapper */
.brand-small { 
  display: inline-flex; 
  gap: 0.2rem; /* Ein kleiner Abstand zwischen PhO und Arbeitssicherheit */
  font-weight: 700; 
  color: initial;
}

/* Teil 1: PHO (Die Akzentfarbe) */
.brand-small .brand-pho {
  color: var(--pho-purple) !important;; 
  font-weight: 700;
}

/* Teil 2: Arbeitssicherheit (Die gedämpfte Farbe) */
.brand-small .brand-tagline {
  color: var(--text-muted) !important;; /* Nimmt die Standard-Graufarbe an */
  font-weight: 600; /* Etwas weniger dick als 'PhO' */
}
.copyright { color: var(--text-muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--pho-purple); text-decoration: underline; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
/* --- Styling für Textseiten (Impressum/Datenschutz) --- */
.legal-page {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 2rem auto;
}

.legal-page h1 { color: var(--pho-purple); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
.legal-page h4 { margin-top: 1.5rem; }

/* --- Mobile Anpassung Service--- */
@media (max-width: 600px) {
  .split-services {
    grid-template-columns: 1fr; /* Alles untereinander */
    gap: 2rem;
  }
  
  /* Auf dem Handy ist das Bild automatisch oben, 
     weil es im HTML zuerst steht. Wir müssen nichts tricksen. */

  .services-content {
    padding-left: 0; /* Abstand auf Handy entfernen */
    text-align: center;
  }
  
  .services-img {
    max-width: 80%;
    transform: rotate(0deg); /* Keine Drehung auf dem Handy */
  }
  
  .service-list {
    text-align: left; /* Liste bleibt linksbündig für Lesbarkeit */
    margin: 0 auto;
  }
}

/* Mobile Anpassung */
@media (max-width: 600px) {
  .legal-page { padding: 1.5rem; }
}
/* ENTFERNT: Die überflüssige schließende Klammer, die hier am Ende stand */

/* --- Cookie Banner Styling --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg); /* Passt sich Hell/Dunkel an */
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 9999; /* Muss über allem liegen */
  
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  /* Animation für das Reinschieben */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  visibility: hidden; /* Start: unsichtbar */
}

/* Wenn Klasse 'show' aktiv ist, schiebt er sich rein */
.cookie-banner.show {
  transform: translateY(0);
  visibility: visible;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cookie-content a {
  color: var(--pho-purple);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.cookie-btn.primary {
  background-color: var(--pho-purple);
  color: #ffffff;
}
.cookie-btn:hover {
  opacity: 0.9;
}

/* Anpassung für größere Bildschirme: Alles in einer Zeile */
@media (min-width: 700px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem; /* Etwas weniger Höhe, mehr Breite */
  }
  .cookie-content {
    max-width: 70%;
  }
}