/* ==============================================================
   Alperen-oezyan – style.css
   Version 1.0 – Design für das bestehende HTML-Grundgerüst

   Aufbau dieser Datei:
    0. Schriften laden
    1. Design-Variablen (Farben, Schriften, Abstände)
    2. Grundeinstellungen (Reset & Basis)
    3. Typografie
    4. Buttons
    5. Navigation
    6. Hero-Bereich
    7. Allgemeine Abschnitte
    8. Problem-Bereich
    9. Leistungskarten
   10. Copywriting & KI-Unterstützung
   11. Ablauf
   12. Über mich
   13. Kontaktformular
   14. Footer
   15. Animationen
   16. Responsive: Tablet & Smartphone
   ============================================================== */


/* --------------------------------------------------------------
   0. SCHRIFTEN LADEN
   Cormorant Garamond = elegante Schrift für Überschriften
   Inter = moderne, sehr gut lesbare Schrift für Fließtext
   "display=swap" zeigt Text sofort an, auch wenn die Schrift
   noch lädt (gut für die Ladezeit).
   -------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");


/* --------------------------------------------------------------
   1. DESIGN-VARIABLEN
   Hier stehen alle Farben und Werte an EINER Stelle.
   Willst du z. B. das Beige ändern, änderst du es nur hier.
   -------------------------------------------------------------- */
:root {
  /* Farben */
  --color-black: #111111;       /* Haupttext, dunkle Flächen */
  --color-gray: #5c5a57;        /* Nebentexte */
  --color-white: #ffffff;       /* Hintergrund */
  --color-offwhite: #faf8f5;    /* sehr helles Beige für Abschnitte */
  --color-beige: #e8dfd3;       /* Akzentflächen */
  --color-beige-dark: #b89f7e;  /* Hover, feine Linien, Akzente */
  --color-line: #e6e1da;        /* dezente Trennlinien */

  /* Schriften */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Abstände & Formen */
  --section-space: clamp(4rem, 8vw, 7rem); /* passt sich der Bildschirmbreite an */
  --radius: 14px;
  --radius-small: 8px;
  --header-height: 76px;

  /* Schatten & Übergänge */
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
  --shadow-hover: 0 18px 40px rgba(17, 17, 17, 0.10);
  --transition: 0.3s ease;
}


/* --------------------------------------------------------------
   2. GRUNDEINSTELLUNGEN
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Damit Überschriften beim Springen nicht unter der festen Navigation verschwinden */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* ca. 17px – angenehm lesbar */
  line-height: 1.7;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* verhindert seitliches Wackeln auf dem Handy */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* Inhaltsbreite: maximal 1100px, auf kleinen Bildschirmen mit Rand */
.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Sichtbarer Fokus für Tastatur-Nutzer (Barrierefreiheit) */
:focus-visible {
  outline: 2px solid var(--color-beige-dark);
  outline-offset: 3px;
}


/* --------------------------------------------------------------
   3. TYPOGRAFIE
   -------------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
  text-wrap: balance;          /* verteilt Zeilen gleichmäßiger */
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

/* Einleitungstext unter Abschnitts-Überschriften */
.section-intro {
  max-width: 620px;
  color: var(--color-gray);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}


/* --------------------------------------------------------------
   4. BUTTONS
   .btn = Grundform, .btn-primary = schwarz, .btn-secondary = Rahmen
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;            /* gut antippbar auf dem Handy */
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--color-black);
  border-radius: 999px;        /* runde "Pillen"-Form */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-beige-dark);
  border-color: var(--color-beige-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-black);
}

.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------
   5. NAVIGATION
   Bleibt beim Scrollen oben sichtbar ("sticky").
   -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);       /* leicht verschwommener Hintergrund */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

/* Logo-Schriftzug */
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Menüliste: Punkte nebeneinander */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Normale Menülinks mit feiner Linie beim Hover */
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-black);
  padding-block: 0.3rem;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-beige-dark);
  transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Button in der Navigation etwas kompakter */
.nav-links .btn {
  min-height: 42px;
  padding: 0.55rem 1.2rem;
}

/* Burger-Button: auf dem Desktop versteckt.
   Bis 960px wird er sichtbar (siehe Abschnitt 16, Funktion in script.js). */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-white);
  font-size: 1.3rem;
  cursor: pointer;
}


/* --------------------------------------------------------------
   6. HERO-BEREICH
   Klare Hierarchie: kleine Zeile → große Headline → Text → Buttons
   -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  background:
    /* weicher beiger Lichtschein oben rechts */
    radial-gradient(circle at 85% 20%, rgba(232, 223, 211, 0.9), transparent 45%),
    var(--color-offwhite);
  overflow: hidden;
}

/* Feine dekorative Linie unten im Hero */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1100px, 100% - 2.5rem);
  height: 1px;
  background: var(--color-line);
  transform: translateX(-50%);
}

/* Kleine Zeile über der Headline */
.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-gray);
  background: rgba(255, 255, 255, 0.6);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.hero-subline {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;             /* Buttons rutschen auf dem Handy untereinander */
  gap: 1rem;
}


/* --------------------------------------------------------------
   7. ALLGEMEINE ABSCHNITTE
   Einheitlicher Abstand oben und unten für alle Bereiche
   -------------------------------------------------------------- */
main > section {
  padding-block: var(--section-space);
}


/* --------------------------------------------------------------
   8. PROBLEM-BEREICH
   Drei Spalten mit feiner beiger Linie oben
   -------------------------------------------------------------- */
.problems h2 {
  margin-bottom: 3rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.problem-item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-beige);
}

.problem-item h3 {
  font-size: 1.45rem;
}

.problem-item p {
  color: var(--color-gray);
}


/* --------------------------------------------------------------
   9. LEISTUNGSKARTEN
   Vier Karten im Raster. Auf großen Bildschirmen 4 nebeneinander,
   auf Tablets 2, auf dem Handy 1 (siehe Abschnitt 16).
   -------------------------------------------------------------- */
.services {
  background: var(--color-offwhite);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;      /* Inhalt untereinander */
  padding: 2rem 1.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

/* Hover: Karte hebt sich leicht an */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-beige-dark);
}

/* Icon in einem beigen Kreis */
.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--color-beige);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
}

.service-card p {
  color: var(--color-gray);
  font-size: 0.98rem;
  flex-grow: 1;                /* schiebt den Link nach unten → alle Links auf einer Höhe */
}

/* "Mehr erfahren →" */
.card-link {
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition), letter-spacing var(--transition);
}

.card-link:hover {
  color: var(--color-beige-dark);
}

/* Karte 4: "Im Aufbau" – etwas zurückhaltender dargestellt */
.service-card--coming-soon {
  background: var(--color-offwhite);
  border-style: dashed;
}

.badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
}


/* --------------------------------------------------------------
   10. COPYWRITING & KI-UNTERSTÜTZUNG
   Beide nutzen .detail-section und .feature-list.
   -------------------------------------------------------------- */

/* KI-Bereich bekommt einen beigen Hintergrund zur optischen Abwechslung */
#ki-unterstuetzung {
  background: var(--color-beige);
}

#ki-unterstuetzung .section-intro {
  color: #4a4744;
}

/* Liste als 2-spaltiges Raster */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}

.feature-list li {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.feature-list h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.feature-list p {
  margin: 0;
  color: var(--color-gray);
  font-size: 0.98rem;
}


/* --------------------------------------------------------------
   11. ABLAUF IN DREI SCHRITTEN
   Dunkler Abschnitt als starker Kontrast
   -------------------------------------------------------------- */
.process {
  background: var(--color-black);
  color: var(--color-white);
}

.process h2 {
  margin-bottom: 3rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  list-style: none;            /* Nummern stehen schon in den Überschriften */
  margin: 0;
  padding: 0;
}

.process-step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-beige-dark);
}

.process-step h3 {
  color: var(--color-beige);
}

.process-step p {
  color: rgba(255, 255, 255, 0.75);
}


/* --------------------------------------------------------------
   12. ÜBER MICH
   Bild links, Text rechts
   -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-image {
  margin: 0;
  position: relative;
}

/* Beiger Rahmen leicht versetzt hinter dem Bild */
.about-image::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius);
  z-index: -1;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.about-text p {
  color: var(--color-gray);
}

.about-text .btn {
  margin-top: 1rem;
}


/* --------------------------------------------------------------
   13. KONTAKTFORMULAR
   -------------------------------------------------------------- */
.contact {
  background: var(--color-offwhite);
}

.contact .container {
  max-width: 760px;            /* Formular schmaler = angenehmer auszufüllen */
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
}

/* Eingabefelder */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;             /* mind. 16px → iPhone zoomt nicht automatisch rein */
  color: var(--color-black);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Feld ist aktiv: beiger Rahmen und weicher Schein */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-beige-dark);
  box-shadow: 0 0 0 4px rgba(184, 159, 126, 0.18);
}

/* Checkbox: Kästchen und Text nebeneinander */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 0;
  accent-color: var(--color-black);
}

.form-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-gray);
}

.form-checkbox a {
  color: var(--color-black);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-gray);
  text-align: center;
}


/* --------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------- */
.site-footer {
  padding-block: 2.5rem;
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-beige);
}


/* --------------------------------------------------------------
   15. ANIMATIONEN
   Der Hero-Inhalt blendet beim Laden sanft von unten ein.
   Jedes Element startet etwas später → ruhiger Effekt.
   (Einblenden beim Scrollen kommt später mit JavaScript.)
   -------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow,
.hero h1,
.hero-subline,
.hero-buttons {
  animation: fadeUp 0.8s ease both;
}

.hero h1        { animation-delay: 0.1s; }
.hero-subline   { animation-delay: 0.25s; }
.hero-buttons   { animation-delay: 0.4s; }

/* Wer in seinem Gerät "Bewegung reduzieren" eingestellt hat,
   bekommt keine Animationen (Barrierefreiheit). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* --------------------------------------------------------------
   16. RESPONSIVE DESIGN
   "@media" heißt: Diese Regeln gelten nur bis zu einer
   bestimmten Bildschirmbreite.
   -------------------------------------------------------------- */

/* ---------- Tablet (bis 1024px) ---------- */
@media (max-width: 1024px) {

  /* Leistungskarten: 2 nebeneinander */
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    gap: 1.25rem;
  }
}

/* ---------- Burger-Menü (bis 960px) ---------- */
@media (max-width: 960px) {

  /* Burger-Button sichtbar machen */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    color: var(--color-black);
    line-height: 1;
    transition: border-color var(--transition);
  }

  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] {
    border-color: var(--color-beige-dark);
  }

  /*
    Aufklapp-Menü: liegt direkt unter dem Header und ist so breit
    wie der Header selbst (left/right: 0) → kann den Bildschirm
    nicht verbreitern. Bezugspunkt ist .site-header (sticky).
  */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;   /* 1.25rem = gleicher Rand wie .container */
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);

    /* Nie höher als der sichtbare Bildschirm; sonst im Menü scrollen */
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;

    /* Geschlossen: unsichtbar und nicht per Tab erreichbar */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition),
                visibility var(--transition);
  }

  /* Geöffnet: Button steht auf aria-expanded="true" */
  .nav-toggle[aria-expanded="true"] + .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Feine Trennlinien zwischen den Menüpunkten */
  .nav-links li {
    border-bottom: 1px solid var(--color-line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 1.25rem;
  }

  /* Menülinks: ganze Zeile antippbar, mind. 48px hoch */
  .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: 0.5rem;
    font-size: 1.05rem;
  }

  /* "Anfrage stellen" über die volle Breite */
  .nav-links .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* ---------- Kleines Tablet / großes Handy (bis 860px) ---------- */
@media (max-width: 860px) {

  /* Problem- und Ablauf-Bereich untereinander */
  .problem-grid,
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  /* Listen einspaltig */
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Über mich: Bild oben, Text unten */
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-image {
    max-width: 420px;
  }
}

/* ---------- Smartphone (bis 600px) ---------- */
@media (max-width: 600px) {

  body {
    font-size: 1rem;
  }

  /* Leistungskarten: eine pro Zeile */
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Hero-Buttons volle Breite → leichter zu tippen */
  .hero-buttons .btn {
    width: 100%;
  }

  .eyebrow {
    font-size: 0.8rem;
  }

  /* Versetzter Bildrahmen kleiner, damit nichts über den Rand ragt */
  .about-image::before {
    inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  }

  /* Footer zentriert und untereinander */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}