/* ===================================================================
   CSS: Component-Structured (non-breaking)
   This file adds section headers and a table of contents only.
   Rule order and declarations are preserved 1:1 for identical output.

   TABLE OF CONTENTS:
   1. Base & Reset
   2. Layout
   3. Header
   4. Navigation
   5. Hero
   6. Sections
   7. Cards
   8. Buttons
   9. Forms
   10. Media
   11. Footer
   12. Utilities
   99. Responsive (@media)
=================================================================== */

/* ==========================
   Live Illustration Styles
   Fast, responsive, warm palette
   ========================== */


/* ===================== BASE & RESET ===================== */

:root {
  --brand: #f98513; /* warm orange #ff7a18 #f78837 #f9b73f #ff5b04*/
  --ink: #111144; /* near-black text #2c2c2c #002432 #114036 #16232a */
  --bg: #fffaf5; /* warm paper #fffaf5*/
  --paper: #e4eef0; /* section paper #fff7ef #dfe4e5*/

  --luster: #f4f1ec;
  --jodhpur: #dad1c8;
  --aster: #9bacd8;
  --royal: #223382;
  --habanero: #f98513;
  --deadly: #111144;

  /*--maxw: 100%;*/
  --maxw: 1700px;
  --radius-xl: .5rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --carousel-fixed-h: 500px; /* Höhe der Content Slider */
  --logo-max-h: 120px; /* Größe der Kundenlogos */
  --logo-gap: .25rem; /* Grid-Abstand für Kundenlogos */

  --swiper-theme-color: var(--brand);
  --swiper-pagination-bullet-size: .8rem;
}

/* Global resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: var(--ink);
}

/* ===================== UTILITIES ===================== */

.text-link:hover {
  text-decoration: none;
  color: var(--brand);
}

.text-link-inv:hover {
  text-decoration: none;
  color: var(--paper);
}

/* ===================== SWIPER ===================== */
.swiper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #fff;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .swiper-button {
    transition: color 0.3s ease-in-out;

    &:hover {
      color: var(--royal);
    }
  }
}

.swiper-hero {
  width: 100%;
  max-height: 60vh;     /* Hero-Bild nimmt maximal 60% dier view width ein */
  border-radius: 0;
  aspect-ratio: 2 / 1;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .title {
    position: absolute;
    top: 20%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    color: var(--paper);
    background: var(--ink);
    border-radius: var(--radius-xl);
    font-family: 'Roboto Slab', "Merriweather", Georgia, serif;
    /* font-size: clamp(1rem, 2vw, 2.6rem); */
    /* padding: .8rem; */
    font-size: clamp(.9rem, 1.5vw, 2rem);
    padding: .6rem;
  }
}

.swiper-testimonials {
  width: 100%;
  height: auto;
  aspect-ratio: initial;

  .swiper-slide {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  img {
    width: 180px;
    height: auto;
    border-radius: 999px;
    box-shadow: var(--shadow);
    object-fit: cover;
  }

  blockquote {
    font-style: italic;
    margin: 0;
  }
}

/* so the pagination is centered and does not obstruct the YT controls */
#animation .swiper-pagination {
  width: auto;
  left: 50%;
  transform: translate(-50%, 0);
}

/* ===================== LAYOUT ===================== */

.container {
  width: min(92vw, var(--maxw));
  margin-inline: auto;
}

/* Typography */
.section-title {
  font-family: 'Roboto Slab', "Merriweather", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.6rem);
  margin: 0 0 0.75rem 0;
}

.section-text {
  font-size: clamp(1rem, 0.3vw + .8rem, 2rem);
  color: var(--ink);
  max-width: 60ch;
}

/* ===================== SECTIONS ===================== */

.imprint-text {
  max-width: 100ch;
}


/* Header / Nav */

/* ===================== HEADER ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  /*  border-bottom:1px solid #eee; */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem; /* Abstand Icon ↔ Text */
  text-decoration: none;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Inter, Arial, sans-serif;
  color: var(--ink);
}

/* Monogramm */
.brand-mark {
  display: block;
  width: 40px; /* sichtbare Größe – feinjustieren */
  height: auto; /* Seitenverhältnis aus SVG */
}

/* Wortmarke rechts */
.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: clamp(28px, 1vw, 44px);
}

.brand-desc {
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 300; /* dünn wie Fließtext */
  font-size: clamp(18px, 0.5vw, 28px);
  letter-spacing: .2px;
}

/* .brand-logo{ width:40px; height:40px; border-radius:50%;} */
/* .brand .logo { width: min(92vw, 300px); height: auto; display:block; } */
.brand .logo {
  height: 55px;
  width: auto;
  display: block;
}


/*.main-nav .nav-menu{*/
/*  display:flex; align-items:center; gap:1rem;*/
/*  list-style:none; margin:0; padding:0;*/
/*}*/

/* ===================== NAVIGATION ===================== */

.nav-link {
  font-family: 'Roboto Slab', "Merriweather", Georgia, serif;
  text-decoration: none;
  color: var(--ink);
  border-radius: .75rem;
}

.nav-link:hover {
  background: var(--brand);
}

.nav-link-inv {
  font-family: 'Roboto Slab', "Merriweather", Georgia, serif;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border-radius: .75rem;
}

.nav-link-inv:hover {
  background: var(--brand);
}

.nav-link-ghost {
  border: 2px solid var(--ink);
  padding-block: 7px;
}

.nav-link-ghost:hover {
  border: 2px solid var(--brand);
  background: none;
}


nav a,
p .nav-link-inv,
p .nav-link {
  padding: 9px 12px;
}

/* Mail-Button unten (Klasse ggf. anpassen) */
.contact-section .nav-link-inv {
  display: inline-flex;
  align-items: center; /* vertikal zentrieren */
  gap: .6rem; /* Abstand Icon ↔ Text */
  line-height: 1; /* verhindert zusätzliche Zeilenhöhe */
}

/* SVG-Icon im Button */
.contact-section .nav-link-inv svg {
  display: block; /* eliminiert Baseline */
  width: 1.2em; /* skaliert mit Schriftgröße */
  height: 1.2em;
  flex: 0 0 auto;
}

/* ===================== NAVIGATION TOGGLE ===================== */
.show-menu {
  width: 32px;
  height: 22px;
  display: flex;
  left: auto;
  cursor: pointer;
  align-items: center;
  position: relative;
  justify-content: center;

  span, &:before, &:after {
    width: 100%;
    height: 4px;
    background: var(--brand);
    border-radius: 3px;
  }

  &:before, &:after {
    content: "";
    left: 0;
    position: absolute;
    transition: all 0.3s ease;
  }

  &:before {
    top: 0;
  }

  &:after {
    top: 18px;
  }
}


.menu-toggler {
  left: 10px;
  top: 10px;
  opacity: 0;
  position: absolute;

  &:checked + .show-menu {
    span {
      background: transparent;
    }

    &:after {
      top: 9px;
      transform: rotate(45deg);
    }

    &:before {
      top: 9px;
      transform: rotate(-45deg);
    }
  }

  &:checked ~ nav {
    display: block;
    transform: translateX(0);
  }
}

nav {
  display: none;
  right: 0;
  top: 72px;      /* abstand vom oberen Bildschirmrand muss gleich Header-Höhe sein 75 */
  bottom: 0;
  width: 100%;
  height: 100vh;
  position: fixed;
  background: var(--jodhpur);
  transition: all 0.3s ease;
  transform: translateX(100%);

  /*custom*/
  z-index: 10;

  ul {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .show-menu {
    display: none;
  }

  nav {
    background: none;
    display: block;
    position: static;
    width: auto;
    height: auto;
    transform: none;

    ul {
      flex-direction: row;
      margin: 0;
    }
  }
}


/* Burger for mobile */
/*.burger{ display:none; background:none; border:0; padding:.4rem; border-radius:.6rem; }*/
/*.burger:focus{ outline:2px solid var(--brand); outline-offset:2px; }*/
/*.burger-line{ display:block; width:26px; height:3px; background:#333; margin:5px 0; border-radius:2px; }*/

/* Hero */
.hero-section {
  padding: 0;
}

/* .hero-media{ width:100%; aspect-ratio: 2.2 / 1; object-fit: cover; } */
.hero-section .carousel {
  border-radius: 0;
  box-shadow: none;
}

.hero-section .slide {
  min-width: 100%;
  aspect-ratio: 2.5 / 1;
}

/* fixes Seitenverhältnis */
.hero-section .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt vollflächig, wird bei Bedarf beschnitten */
  object-position: center; /* mittig ausgerichtet */
}

/* Split sections */
.section {
  padding: clamp(90px, 3vw, 3rem) 0;
}

@media (max-width: 720px) {
  .section {
    padding-bottom: 1rem;
  }
}


/* steuert das Padding jeder Sektion */
.split-inner {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* gap steuert den Abstand zwischen Slider und Textblock */
.section.section-reverse .split-inner {
  direction: rtl;
}

.section.section-reverse .split-inner > * {
  direction: ltr;
}

/* Carousel */

/* ===================== MEDIA ===================== */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 1s ease;
}

.carousel .slide {
  min-width: 100%;
}

.carousel img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, .65);
  padding: 2rem .5rem;
  border-radius: .2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-btn:hover {
  background: #fff;
}

.carousel .prev {
  left: .5rem;
}

.carousel .next {
  right: .5rem;
}

.carousel-dots {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}

.carousel-dots button {
  width: .5rem;
  height: .7rem;
  border-radius: 50%;
  border: 0;
  background: #ddd;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--brand);
}

/* Clients */
.clients-section .logo-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.portrait {
  width: min(420px, 80%);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Footer */

/* ===================== FOOTER ===================== */

.site-footer {
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
}

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

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

/* Section background accent colors and inverted font colors if necessary */
.hero-section {
  background: #fff;
}

#graphic-recording.paper-bg {
  background-color: var(--luster);
}

#animation.paper-bg {
  background-color: var(--habanero);
}

#illustration.paper-bg {
  background-color: var(--aster);
}

.clients-section.paper-bg {
  background-color: var(--deadly);
}

#clients .section-title,
#clients .section-text {
  color: var(--paper);
}

.contact-section.paper-bg {
  background-color: var(--jodhpur);
}

.site-footer {
  background: var(--deadly);
}


/* Responsive */

/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 980px) {
  .split-inner, .contact-inner {
    grid-template-columns: 100%;
  }

  /*.main-nav .nav-menu {*/
  /*  position: fixed;*/
  /*  inset: 40px 0 auto 0;*/
  /*  background: rgba(255,255,255);*/
  /*  transform: translateY(-120%); transition: transform .25s ease;*/
  /*  padding: 3rem; flex-direction: column; gap:.8rem;*/
  /*}*/
  /*.main-nav .nav-menu.open{ transform: translateY(30px); }*/
  .burger {
    display: block;
  }

  .split-copy {
    order: 1;
  }

  /* Reihenfolgfe bei Mobile: zuerst Text  */
  .split-media {
    order: 2;
  }

  /* dann Bild/Slider */
}


/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 720px) {
  .clients-section .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* === Fixe, gleiche Höhe für die drei Image-Slider === */

/* Höhe der Slides festlegen */
#graphic-recording .carousel .slide,
#illustration .carousel .slide,
#animation .carousel .slide {
  min-width: 100%;
  /* height: var(--carousel-fixed-h); */ /* feste Höhe der carousels */
  aspect-ratio: 16 / 9;
  height: auto; /* festes Seitenverhältnis der carousels */
  position: relative;
  overflow: hidden; /* verhindert, dass Inhalte die Höhe sprengen */
}

/* Bilder vollflächig einpassen (übersteuert .carousel img { height:auto; }) */
#graphic-recording .swiper img,
#illustration .swiper img,
#animation .swiper img,
#animation .swiper video,
#animation .swiper .yt-placeholder,
#animation .swiper iframe[data-yt-embed] {
  width: 100%;
  height: 100%;
  display: block;
}

#graphic-recording .swiper img,
#illustration .swiper img,
#animation .swiper img,
#animation .swiper video,
#animation .swiper .yt-placeholder img {
  object-fit: contain; /* Bild ist voll sichtbar */
  object-position: center;
}

/* YouTube-Platzhalter selbst muss die volle Höhe einnehmen */
.yt-placeholder {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

/* Kleines Play-Badge (optional) */
.yt-play {
  position: absolute;
  inset: 1rem auto auto 1rem; /* top right bottom left */
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-weight: 700;
  padding: .8rem 1rem;
  border-radius: .4rem;
  line-height: 1;
}

.clients-section a:hover {
  text-decoration: none;
  color: var(--brand);
}

/* Kunden: Zitat kursiv */


/* --- Testimonials: 3/2/1 sichtbare Karten --- */
#clients .carousel.testimonials .carousel-track {
  /* optional: Abstand zwischen Karten
     -> wenn du später Pixel-scrolling nutzt, lass gap=0 oder bleib bei Prozent/px-Transform wie unten im JS (px-Transform verträgt gap). */
  gap: 0;
}

#clients .carousel.testimonials .testimonial {
  /* Standard: 3 pro View */
  min-width: calc(100% / 3);
  padding: 1.25rem; /* etwas kompakter als 2rem */
}


/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 980px) {
  #clients .carousel.testimonials .testimonial {
    min-width: 50%;
  }

  /* 2 pro View */
}

/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 640px) {
  #clients .carousel.testimonials .testimonial {
    min-width: 100%;
  }

  /* 1 pro View */
}


/* === Kundenlogos kleiner + Grid enger === */
/* kleinere Abstände + mehr Spalten auf groß */
#clients .logo-grid {
  margin-top: 2rem; /* vorher 2rem */
  gap: var(--logo-gap); /* vorher 1rem */
  grid-template-columns: repeat(8, 1fr); /* 8 pro Reihe */
}

/* Zwischenstufe: 5 Spalten auf Tablets */

/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 980px) {
  #clients .logo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobil: 3 Spalten */

/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 720px) {
  .clients-section .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Logos selbst kleiner rendern, Proportionen bewahren */
#clients .logo-grid img {
  max-height: var(--logo-max-h);
  width: auto; /* nicht auf Zellenbreite stretchen */
  height: auto; /* Aspect Ratio beibehalten */
  object-fit: contain; /* falls SVG/PNG mit transparentem Rand */
}

/* Kontakt: Portrait im Wrapper horizontal zentrieren */
.contact-photo {
  display: flex;
  justify-content: flex-end; /* rechtsbündig, oder center für mittig */
  align-items: center; /* optional: vertikal mittig */
}


/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 980px) {
  .contact-photo {
    justify-content: center;
  }
}

/* Animation-Text rechtsbündig, bis das Layout auf 1 Spalte umbricht */
/* Horizontal (2-spaltig): rechtsbündig + Boxen an die rechte Kante */

/* ===================== RESPONSIVE (@media) ===================== */

@media (min-width: 981px) {
  #animation .split-copy {
    text-align: right;
  }

  #animation .split-copy .section-title,
  #animation .split-copy .section-text {
    margin-left: auto; /* schiebt die Box nach rechts */
  }
}

/* Ab Umbruch (1-spaltig): wieder links */

/* ===================== RESPONSIVE (@media) ===================== */

@media (max-width: 980px) {
  #illustration .split-copy {
    text-align: left;
  }

  #illustration .split-copy .section-title,
  #illustration .split-copy .section-text {
    margin-left: 0;
  }
}


/* HERO: vertikales Padding wirklich auf 0 setzen */
.section.hero-section {
  padding: 0;
}

/* höhere Spezifität + später in der Datei */
/* alternativ (wenn du’s ganz hart willst): .hero-section{ padding:0 !important; } */

/* Clients: Überschrift zentrieren */
#clients .section-title {
  text-align: center;
}

.contact-section .contact-link {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.contact-section .contact-link:hover {
  color: var(--brand);
}

.contact-section .contact-link .icon {
  display: inline-block;
  vertical-align: -2px;
}

/* für accessibility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
