/* =======================================================
   components.css
   UI-Komponenten – Mobile First
   ======================================================= */

.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* -------------------------------------------
   Language switch
------------------------------------------- */
.lang {
  display: inline-flex;
  gap: 5px;
  margin-left: 4px;


}

.lang__link {
  border: 1px solid rgba(200, 200, 200, 0.40);
  color: rgba(163, 167, 177, 0.78);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 120ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
  outline: none;
}

.lang__link:hover {

  color: rgba(183, 185, 190, 0.95);
  background: rgba(255, 255, 255, 0.40);
}

.lang__link.is-active {
  color: #0b1020;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(196, 196, 196, 0.95), rgba(191, 193, 196, 0.95));
}

.lang__link:focus-visible {
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14);
}

/* =======================================================
   Theme Toggle
   ======================================================= */

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--bg-soft);
}

/* -----------------------
   Navigation Links
   ----------------------- */
.nav-desktop a,
.nav-mobile a {
  font-weight: 500;
  opacity: 0.75;
}

.nav-desktop a.is-active,
.nav-mobile a.is-active {
  font-weight: 600;
  opacity: 1;
}

/* Mobile Links – große Touch-Ziele */
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}


.header-actions {
  display: flex;
  gap: 8px;
  justify-self: end;   /* ✅ sitzt rechts im Header-Grid */
  align-items: center;
}

/* =========================
   Burger Button
   ========================= */
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* Linien absolut zentriert */
.nav-toggle__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, opacity 180ms ease;
}

/* obere / untere Linie im Burger-Zustand */
.nav-toggle__line:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle__line:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

/* =========================
   ☰ → ✕ Animation
   ========================= */
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-desktop a {
  padding: 6px 0;
  position: relative;
}

/* dezente Linie beim Hover */
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 200ms ease;
  }

  .nav-desktop a:hover::after {
    transform: scaleX(1);
  }
}

/* Desktop Hover nur bei Maus */
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover {
    text-decoration: none;
  }
}

/* Ticker Container – fest an der Headerunterkante */
.ticker{
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
  min-width: 0;

  /* ✅ Hintergrund-Bar */
  background: var(--bg, #fff);
  border-top: none;
  border-bottom: none;
  color: var(--text);

  /* ✅ Höhe & Innenabstand */
  padding: 8px 0;
}

/* Clipping-Viewport */
.ticker__viewport{
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track – KEINE Animation hier */
.ticker__track{
  display: inline-flex;
  width: max-content;
  transform: translate3d(0px, 0, 0);
  will-change: transform;
}

/* Einzelne Texte */
.ticker__item{
  padding-right: 64px;
  white-space: nowrap;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =======================================================
   Fixed Background
   ======================================================= */
.fixed-bg {
  position: fixed;
  top: var(--header-height);
  /* unter Header */
  left: 0;
  right: 0;
  height: var(--fixed-panel-height);
  /* 800/300 */
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.fixed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* optional: filter wie gehabt */
  filter: sepia(50%);
}

/* =======================================================
   HERO
   ======================================================= */
/* components.css */

/* HERO – genau so hoch wie der fixe Background */
.hero {
  position: relative;
  z-index: 1;

  /* entscheidend: exakt gleiche Höhe wie der Background */
  height: var(--fixed-panel-height);

  /* Titel-Layout */
  display: grid;
  align-content: end;
  /* Titel sitzt unten im Hero-Bereich */
  background: none;
}

/* Titel: linksbündig, kein Zeilenumbruch */
.hero-title {
  max-width: var(--max-width);
  margin: 0;
  /* Container zentriert, Text bleibt links */
  padding-left: var(--page-padding);
  padding-right:var(--page-padding) ;
  /* Abstand nach unten -> "weiter unten" */
  text-align: left;

  white-space: nowrap;
  /* ❗ kein Umbruch */
  overflow: visible;


  color: #ffffffbe;
  font-size: clamp(1.4rem, 3.6vw, 3.6rem);
  /* skaliert ohne Umbruch */
  line-height: 1.05;
}

/* -----------------------
   Buttons (Basis)
   ----------------------- */
.button {
  display: inline-grid;
  place-items: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

/* =======================================================
   Über uns – Design wie Screenshot
   ======================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile */
  gap: 24px;
  align-items: start;
}

/* TEXT */
.about-text p {
  max-width: 55ch;
}

/* CARD */

.about-card {
  display: inline-block;          /* ✅ passt sich dem Inhalt an */
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 8px;                   /* ✅ minimaler Rahmen */
  margin-top: 0;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.10);

  position: relative;
  justify-self: start;
}

/* Bild */

.about-card img {

  display: block;
  width: 100%;
  height: auto;                   /* ✅ natürlich */
  object-fit: cover;

  background: #fff;

  border-radius: calc(var(--radius-lg) - 4px);
  
}

/* Caption */
.about-card figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* =======================================================
   LEISTUNGEN / SERVICES
   ======================================================= */

.section-head {
  max-width: 40rem;
  margin-bottom: 24px;
}

.section-head p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.75;
  max-width: 50ch
}

.services {
  display: grid;
  grid-template-columns: 1fr; /* ✅ Mobile */
  gap: 16px;
}

/* Einzelne Leistung */
.service-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;

  /* ruhige, klare Tiefe */
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    0 3px 8px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  margin-top: 0.5em;
}

.service-card li {
  opacity: 0.85;
  line-height: 1.5;
}

/* =======================================================
 IMPRESSIONEN – FADE SLIDESHOW + TOUCH SWIPE
 ======================================================= */

.slideshow {
  display: grid;
  gap: 12px;
  filter: grayscale();
}

.slideshow__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  outline: none;

  /* Wichtig für Touch: vertikales Scrollen erlauben,
     horizontale Gesten für Swipe nutzen */
  touch-action: pan-y;
  height: clamp(220px, 60vw, 420px);
}

.slideshow__track {
  position: relative;
  height: 100%;
  min-height: 0;
}

/* Slides: übereinander stapeln, per Opacity/Transform wechseln */
/* Slide als Bezugspunkt */
.slideshow__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  margin: 0;

  opacity: 0;
  transform: scale(1.01);
  transition: opacity 360ms ease, transform 360ms ease;

  pointer-events: none;

  /* wichtig: Caption overlay braucht relative */
  border-radius: var(--radius-md);
  overflow: hidden;
}

.slideshow__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Bild füllt den Slide komplett */
.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* ✅ Caption als Overlay unten */
.slideshow__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.0)
  );

  /* optional: bessere Lesbarkeit */
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Controls */
.slideshow__controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.slideshow__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.slideshow__btn:hover {
  background: var(--bg-soft);
}

.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slideshow__dot[aria-selected="true"] {
  background: var(--accent);
  border-color: transparent;
}

/* Fokus sichtbar */
.slideshow__btn:focus-visible,
.slideshow__dot:focus-visible,
.slideshow__viewport:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced motion: keine Fades */
@media (prefers-reduced-motion: reduce) {
  .slideshow__slide {
    transition: none;
  }
}

/* =======================================================
 LIGHTBOX
 ======================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  display: grid;
  gap: 10px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.50);
  padding: 12px;
}

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: calc(86vh - 90px);
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #000;
}

.lightbox__caption {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
  padding: 0 4px 4px;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(0,0,0,0.55);
}

.lightbox__close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* UX: Klickbarkeit der Slider/Gallery Bilder */
.slideshow__slide img,
.gallery-item img {
  cursor: zoom-in;
}

/* -------------------------------------------
   LinkedIn
------------------------------------------- */

.linkedin-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.linkedin-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* LinkedIn Icon */
.linkedin-preview__icon {
  width: 44px;
  height: 44px;
  border-radius: 0%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Text */
.linkedin-preview__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.linkedin-preview__title {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0;
}

.linkedin-preview__meta {
  font-size: 13px;
  color: var(--link);
}

/* =======================================================
   KONTAKT
   ======================================================= */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr; /* Mobile */
  gap: 16px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr; /* Mobile */
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid currentColor;
  background: var(--panel);  
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.20),
    0 6px 16px rgba(0, 0, 0, 0.08);

}

.contact-card a,
.contact-card p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card__content {
  display: grid;
  gap: 4px;
}

.contact-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

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

footer{
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.2rem;
  z-index: 2;
  padding-inline: var(--page-padding);
  
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  
}

/* Footer-Zeile: links Copyright, rechts Links */
.footer__row {
  display: grid;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
}

/* Linkblock rechts + sauberer Abstand */
.footer__links {
  margin-left: auto;
  /* schiebt den Block nach rechts */
  display: flex;
  gap: 1rem;
  /* Abstand zwischen Links */
  justify-content: flex-end;
  /* innerhalb rechtsbündig */
  text-align: right;
}

.footer-center {
display: flex;
justify-content: center;
align-items: center;
gap: 18px;
border-radius: var(--radius-lg);

}

.footer__links a {
  display: flex;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__links a:hover {
  color: var(--text);
}

/* -----------------------
   Desktop-Erweiterung
   ----------------------- */


/* -----------------------
   Abschnittsüberschriften
   ----------------------- */
.section h2 {
  margin-bottom: 0.8em;
}

/* -----------------------
   Hilfstexte
   ----------------------- */
.muted {
  opacity: 0.7;
}

.service-card,
.contact-card {
  background: var(--panel);
  border-color: var(--border);
} 

.nav-desktop a,
.nav-mobile a {
  color: var(--text);
}

.nav-desktop a.is-active,
.nav-mobile a.is-active {
  color: var(--text);
  font-weight: 600;
}

/* -----------------------
   Desktop
   ----------------------- */

@media (min-width: 1024px) {

  .services {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery {
    grid-template-columns: 4, 1fr;
  }

  .nav-toggle {
    display:none;
  }
}

@media (min-width: 768px) {
  .header .brand {
    font-size: 1.15rem;
  }

  .hero-title br {
    display:inline;
  }
  
  .about-grid {
    align-items: center;
    grid-template-columns: 1.2fr 1fr; /* Text | Card */
    gap: 40px;
  }

  .about-text {
    max-width: 55ch;
  }
  
  .about-card {
    margin-top: -32px;     /* ✅ Overlap wie im Design */
    position: relative;
    z-index: 2
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    grid-template-columns: 1fr 120px;
    align-items: start;
  }

  .contact-card__image {
    justify-self: end;
  }

  .contact-card__image img {
    width: 120px;
    height: 170px;
    object-fit: cover;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
  }

  .footer__links {
    align-self: end;
  }

}

@media (max-width: 360px) {
  .contact-card__image img {
    max-height: 200px;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .contact-card {
    padding: 14px;
    gap:12px;
    grid-template-areas:"content" "image";
  } 
  .contact-card__content { 
    grid-area: content; 
  }
  .contact-card__image {
    grid-area: image;
  } 

}

/* Mobile: Bild zuerst */
@media (max-width: 767px) {
.lang {
    gap: 6px;
      padding: 4px;
      border-radius: 10px;
}

  .about-card {
    order: -1;
    margin-top: 0;
  }
  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 48px;
    background-attachment: scroll;
    
  }
  .hero-title {
    white-space: normal;
    font-size: clamp(1.6rem, 6.2vw, 2.3rem);
    padding-bottom: 46px;
  }

  .fixed-bg {
    max-height: 300px;
  }


  .slideshow__controls .slideshow__btn {
    display: none !important;
  }

  /* Controls zentrieren, wenn nur noch Dots da sind */
  .slideshow__controls {
    grid-template-columns: 1fr;
  }

  .slideshow__dots {
    justify-content: center;
  }

  .contact-card {
    display: flex;
    /* wichtig: Layout umstellen */
    flex-direction: column;
    /* Bild/Text untereinander */
    align-items: center;
    /* horizontal zentrieren */
    gap: 14px;
    /* Abstand zwischen Bild & Text */
  }

  /* Bild-Container mittig */
  .contact-card__image {
    order: -1;
    /* Bild nach oben schieben */
    width: 100%;
    display: flex;
    justify-content: center;
    /* Bild mittig */
  }

  /* Bild selbst */
  .contact-card__image img {
    display: block;
    max-width: 120px;
    /* anpassen nach Geschmack */
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Textbereich mittig ausrichten */
  .contact-card__content {
    width: 100%;
    text-align: left;
  }

  /* Optional: Links umbrechen statt rauslaufen */
  .contact-card__content a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .contact-card__content h3,
  .contact-card__content .muted {
    text-align: center;    /* Name/Rolle mittig */
  }

  .contact-card[data-hide-mobile="true"] {
    display: none !important;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;   /* oder center, wenn du’s mittig willst */
    justify-content: flex-start;
    gap: 14px;
  }

  /* optional: Links im Footer als Reihe statt Liste */
  .footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .footer-block {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    position: absolute;
  }
}

