/* === Webfonts: self-hosted === */

/* Figtree – normal (Variable Font, 100–900) */
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree/Figtree[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Figtree – italic (Variable Font, 100–900) */
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree/Figtree-Italic[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Figtree – light (300) */
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree/Figtree-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Permanent Marker – regular (400) */
@font-face {
  font-family: 'Permanent Marker';
  src: url('fonts/Permanent_Marker/permanent-marker-v16-latin-regular.woff2') format('woff2'),
       url('fonts/Permanent_Marker/PermanentMarker-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.footer {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 3rem 1.5rem;
  font-family: 'Figtree', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  flex: 1 1 250px;
}
.footer-logo img {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.95rem;
  color: #555;
  max-width: 260px;
  line-height: 1.5;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 3;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 180px;
  min-width: 150px;
  text-align: center; /* Links & Texte in den Spalten zentrieren */
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #1a1a1a;
}


.footer-column a {
  position: relative;
  display: block;            /* stapelt untereinander, gleicher Startpunkt */
  width: fit-content;        /* Breite = Textbreite (für den Unterstrich) */
  font-size: 0.9rem;
  color: #6e6e6e;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease; /* weicher Farbwechsel */
  margin-left: auto;   /* block mit eigener Breite mittig */
  margin-right: auto;  /* block mit eigener Breite mittig */
}

.footer-column p {
  display: block;
  font-size: 0.9rem;
  color: #6e6e6e;
  margin-bottom: 0.5rem;
}

/* Swipe‑Underline im Footer */
.footer-column a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* Abstand unter dem Text */
  width: 100%;
  height: 2px;
  background: currentColor; /* nutzt die Textfarbe */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-column a:hover::after,
.footer-column a:focus-visible::after {
  transform: scaleX(1);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #000; /* dunkler beim Hover/Focus */
  text-decoration: none; /* kein nativer Unterstrich, wir benutzen ::after */
}

/* Ausnahme: Keine Swipe‑Underline bei Social Icons */
.footer-social a {
  position: static;
  display: inline-flex;
}
.footer-social a::after {
  content: none !important;
}

.footer-social a img {
  width: 24px;
  height: 24px;
  margin-right: 0.7rem;
  filter: brightness(0);
  transition: transform 0.2s ease;
}

.footer-social a img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo,
  .footer-column {
    text-align: center;
  }
}
    .form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.form-half {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 240px;
}

.form-full {
  flex: 1 1 100%;
}

.button-upload-container {
  display: block;
  max-width: 700px;
  margin: 0 auto;
}

.upload-box {
  width: 100%;
  min-width: 240px;
  padding: 1rem;
  box-sizing: border-box;
  border: 2px dashed #aaa;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #f9f9f9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.file-input-hidden {
  display: none;
}

.honeypot-field {
  display: none;
}

.upload-file-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #333;
}

button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background-color: #1a1a1a;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.form-wrapper {
  max-width: 250px;
  margin: 0 auto;
  width: 100%;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  /* mehr Luft links/rechts – passt sich an Viewport an */
  padding: 0 clamp(24px, 5vw, 56px);
  text-align: center; 
}
/* Mobile: mehr seitlicher Innenabstand + Safe‑Area berücksichtigen */
@media (max-width: 700px){
  .container{
    padding-left: max(24px, calc(env(safe-area-inset-left, 0px) + 8px));
    padding-right: max(24px, calc(env(safe-area-inset-right, 0px) + 8px));
  }
}

/* Ensure pages with <main class="container"> can still go full bleed */
main.container:not(.page-content) {
  max-width: none;
  padding: 0;
}

main.container > section {
  width: 100%;
}

main.container > section > * {
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 56px);
  padding-right: clamp(24px, 5vw, 56px);
}

main.container > section > .no-pad,
main.container > section.no-pad > * {
  padding-left: 0;
  padding-right: 0;
}
    .description {
      font-size: 1.25rem;
      color: #99999A;
      max-width: 800px;
      margin-bottom: 3rem;
      margin: 0 auto 3rem auto;
    }
html,
body {
  font-family: 'Figtree', sans-serif;
  background-color: #FFFFFF;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

:root {
  --banded-bg-light: #ffffff;
  --banded-bg-muted: #f5f5f7;
}

/* Alternating full-width section bands */
main > section {
  position: relative;
  z-index: 0;
  padding-block: clamp(4rem, 6vw, 10rem);
}

/* Define band colors via variables to avoid specificity issues */
:root {
  --band-odd-color: var(--banded-bg-light); /* default: odd = white */
  --band-even-color: var(--banded-bg-muted); /* default: even = gray */
}
/* Subpages invert the mapping so the first band is gray */
body:not(.home) {
  --band-odd-color: var(--banded-bg-muted); /* odd = gray */
  --band-even-color: var(--banded-bg-light); /* even = white */
}

main > section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: var(--band-odd-color);
}

main > section:nth-of-type(2n)::before {
  background-color: var(--band-even-color);
}



.page-section { padding-block: clamp(4rem, 6vw, 10rem); }

/* Make visual top/bottom space inside sections equal */
main > section > :first-child { margin-top: 0 !important; }
main > section > :last-child  { margin-bottom: 0 !important; }
.page-section > :first-child { margin-top: 0 !important; }
.page-section > :last-child  { margin-bottom: 0 !important; }
/* Headings inside content sections shouldn't push down from top */
.page-section h1,
.page-section h2,
.page-section h3 { margin-top: 0; }

/* Extra top breathing room for the first content section (exclude homepage hero) */
main > section:first-of-type:not(.hero) {
  padding-top: clamp(6rem, 10vw, 12rem);
}

@media (max-width: 768px){
  main > section:first-of-type:not(.hero){
    padding-top: 8.5rem; /* ~136px to fully clear the 110px mobile header */
  }
}

main > section.tight,
.page-section.tight {
  padding-block: clamp(2rem, 4vw, 4rem);
}

/* Utility: apply the thin Figtree weight when needed */
.light-text {
  font-weight: 300;
}
    h1 {
 font-family: 'Figtree', sans-serif;
      font-size: 4rem;
      font-weight: 900;
      margin-bottom: 1rem;
	color: #2B2A2B;
    }
    h2 {
 font-family: 'Figtree', sans-serif;
      font-size: 2.5rem;
      font-weight: 800;
      margin-top: 3rem;
      margin-bottom: 2rem;

color: #2B2A2B;
    }
.handwritten {
  font-family: 'Permanent Marker', cursive;
font-size: 2rem;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .handwritten {
    font-size: 1.4rem;
  }
  body {
    padding: 0;
  }
}
.upload-box {
  padding: 1rem;
  border: 2px dashed #aaa;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.upload-box.dragover {
  background-color: #333;
  color: #fff;
  border-color: #1a1a1a;
}
    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
        margin: 0 auto;
  text-align: left; /* falls nötig */
  max-width: 100%;
    }
    input, textarea, button {
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 1rem;
    }
    button {
      background-color: #1a1a1a;
      color: white;
      border: none;
      cursor: pointer;
    }
    /* (Entfernt doppelte Definitionen von body, .container, h1 unten) */
    p {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #333;
      margin-bottom: 1rem;
    }
a {
  font-family: 'Figtree', sans-serif;
  color: #1a1a1a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #000;
}
    /* (Entfernt doppelte Media Query für h1, p, body unten) */
.back-link {
  margin-top: 16rem;
  display: block;
}
.review-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.review-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.review-stars {
  color: #6e6e6e;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.2rem;
}

.review-text {
  font-size: 1.1rem;
  color: #1a1a1a;
}
.review-text strong {
  font-weight: 700;
}
.review-logos {
  display: flex;
  align-items: center;
}

.review-logos a {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-left: -15px;
  border-radius: 50%;
  overflow: hidden; /* wichtig, damit der Hover-Schatten rund bleibt */
  background-color: white;
  border: 2px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-logos a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.review-logos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero {
  padding-top: 0.5rem;
  padding-right: 1rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
}

.hero-spacer {
  height: 5rem;
}

/* Home-specific compact hero spacing (reduce the big blank band on index only) */
body.home .hero { 
  padding-top: 0.25rem; 
}
body.home .hero .hero-spacer { 
  height: 0; 
}

.hero-logo {
  width: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 2rem;
}

.hero .handwritten {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 1.5rem;
}

.hero-link-note {
  margin-top: 1rem;
  font-size: 1rem;
}

.shiny-button {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
}

.shiny-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.shiny-button:focus {
  outline: none;
}
.trust-section {
  color: #000000; /* Standardtextfarbe – dunkles Grau */
  padding: 4rem 0;
  text-align: center;
}
.trust-section h2 {
  color: #000000; /* Sehr dunkles Grau */
  font-weight: 800;
}.trust-subheading {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0rem;
  max-width: 700px;
  text-align: center;
}
.trust-list li {
  margin-bottom: 0.7rem;
}
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}
/* === Global consistency: hero & footer === */
/* Hero logo size unified */
.hero-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
}

/* Footer logo (center block) unified */
.footer-logo-center img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

/* Footer social icons in a row */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-social a { display: inline-flex; }
.footer-social img { width: 24px; height: auto; display: block; }

/* === Header / Navigation === */
body {
  padding-top: 120px; /* reserve space for the fixed navigation bar */
}

@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header,
.site-header.container {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0;  /* header has its own inner .container for spacing */
  padding-right: 0;
}
/* === Fix: make header truly full-bleed even if 'container' is applied === */
/* In case the header element accidentally also has the .container class,
   prevent max-width centering from constraining the background width. */
.site-header .container.header-inner {
  text-align: initial; /* override global .container centering for header only */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 110px;
  height: auto;
  padding: .25rem 20px; /* add horizontal gutter so items are not flush to edges */
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.brand-logo {
  height: 100px;
  width: auto;
  display: block;
}

/* nav links */
.nav {
  display: block;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 500;
}
.nav-links a:hover {
  text-decoration: underline;
}

/* CTA button (top-right) */
.btn.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: #f2f2f2;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e5e5e5;
  white-space: nowrap;
}
.btn.btn-cta:hover {
  background: #eaeaea;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: .25rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  margin: 5px 0;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; }

  /* Fullscreen, light glass overlay */
  .site-header.menu-open .nav {
    display: flex !important;
    position: fixed;
    inset: 0;
    top: 0; /* cover the whole viewport */
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.35) !important; /* light milky overlay */
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    z-index: 1000; /* above header */
    border: 0;
  }

  /* Centered white glass card for links */
  .site-header.menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(90vw, 420px);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0.75rem;
    margin: auto;
    border-radius: 16px;
    background: #ffffff;                    /* fully white so nothing shines through */
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .site-header.menu-open .nav-links li {
    width: 100%;
    padding: 0; /* spacing comes from a */
  }

  .site-header.menu-open .nav-links a {
    display: block;
    padding: 2rem 2rem;
    text-align: center;
    font-size: 1.1rem;
    text-decoration: none;
    color: #1a1a1a;
    border-radius: 10px;
    transition: background-color .2s ease, transform .1s ease;
  }

  .site-header.menu-open .nav-links a:hover,
  .site-header.menu-open .nav-links a:focus {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
    outline: none;
  }

  /* Make the toggle easier to hit on mobile */
  .nav-toggle { padding: .5rem; margin-right: -.25rem; }
  .nav-toggle .bar { width: 26px; height: 2px; }
}

/* Offset for sticky header when scrolling to the contact section (GLOBAL) */
#contact-form { 
  scroll-margin-top: 120px; /* adjust if you change header height */
}

/* Small layout tweak (GLOBAL) */
@media (max-width: 768px) {
  .process-grid > div { min-height: 180px; }
}

/* === Partner & Kunden Section (GLOBAL) === */
.partners-section {
  /* use symmetric vertical spacing like other sections */
  padding-block: clamp(4rem, 6vw, 10rem);
  background: transparent;
  text-align: center;
}
/* Keep top/bottom visually equal inside partners section */
.partners-section > .container > :first-child { margin-top: 0 !important; }
.partners-section > .container > :last-child  { margin-bottom: 0 !important; }
.partners-section h1,
.partners-section h2,
.partners-section h3 { margin-top: 0; }
.partners-sub {
  margin: 0 auto 2rem; /* remove negative top pull to keep band visually balanced */
  color: #6e6e6e;
  font-size: 1rem;
}
.partners-logos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(1rem, 3vw, 3rem);
  align-items: center;
  justify-content: center;
  max-width: 1000px;
}
.partners-logos li { line-height: 0; }
.partners-logos img {
  height: 150px;
  filter: grayscale(100%) contrast(1.1) opacity(.7);
  transition: filter .25s ease, opacity .25s ease, transform .2s ease;
}
.partners-logos img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .partners-logos img { height: 70px; }
}

/* === Reusable Grid Utilities (GLOBAL) === */
/* 3er-Grid fix + responsive Fallbacks */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem; /* row / column */
  align-items: start;
}
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; }
}
.feature-list, .bullet-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.feature-list li, .bullet-grid li {
  padding: .25rem 0;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
/* 2-Spalten-Grid für Listen/Blöcke */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* fix auf 2 Spalten */
  gap: 1rem 2rem;                      /* vertikal / horizontal */
  max-width: 900px;
  margin: 0 auto;                       /* gesamter Block mittig */
  align-items: start;                   /* gleiche Grundlinie */
  text-align: left;                     /* bessere Lesbarkeit */
}
@media (max-width: 700px){
  .grid-2{ grid-template-columns: 1fr; }
}
/* Feinabstimmung für die 3er-Bullet-Liste auf der Webdesign-Seite */

.bullet-grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* breitere Spalten, weniger Umbrüche */
  row-gap: 0.75rem;               /* vertikaler Abstand */
  column-gap: clamp(2rem, 6vw, 5rem); /* HORIZONTALER ABSTAND zwischen den Spalten */
  list-style: none;
  max-width: 1100px;              /* etwas mehr Gesamtbreite erlaubt */
  margin: 0 auto;
  justify-items: start;
  text-align: left;
}

@media (max-width: 768px){
  .bullet-grid.grid-3 {
    grid-template-columns: 1fr;          /* verhindert horizontales Überlaufen */
    column-gap: 1.5rem;
  }
}

/* Stronger, scoped overrides: prevent bullets from touching text */
.bullet-grid.grid-3 li {
  padding-left: 2.4rem !important;   /* mehr Platz zwischen Punkt und Text */
  line-height: 1.75 !important;
}
.bullet-grid.grid-3 li::before {
  left: .2rem !important;           /* Punkt weiter nach links (weg vom Text) */
  top: .76em !important;            /* leicht nach oben korrigiert */
  width: 9px;
  height: 9px;
}

/* Einheitliche, fette schwarze Punkte nur für .bullet-grid */
.bullet-grid li {
  position: relative;
  padding-left: 1.5rem;  /* ausreichend Platz für den Punkt */
  line-height: 1.6;      /* harmonische Zeilenhöhe */
  width: 100%;
}
.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 0;               /* bündig am linken Rand des Listenblocks */
  top: 0.7em;            /* orientiert sich an der Schriftgröße */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}
/* Remove bullets in the Materialien & Einsatzbereiche guide only */
#materialien-guide .bullet-grid li{
  padding-left: 0;          /* Platz für den Punkt entfernen */
}
#materialien-guide .bullet-grid li::before{
  content: none !important; /* Punkt ausblenden */
}
.h-captcha {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto; /* oben/unten Abstand */
}

/* === Services Grid (Startseite) (GLOBAL) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 Layout (Desktop/Tablet) */
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); } /* fix auf 2 Spalten */
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; } /* 1 Spalte auf Mobil */
}
.service {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
}
.service h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}
.service p {
  margin: 0;
  color: #333;
  font-size: .95rem;
  line-height: 1.5;
}
#leistungen-heading { margin-top: 5rem; }

/* Service card visual slot (image/icon) */
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.service-media {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: .35rem 0 .35rem;
}
.service-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.08));
  transition: transform .25s ease, filter .25s ease;
  display: block;
}
.service:hover .service-media img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.12));
}
@media (max-width: 600px) {
  .service-media { height: 140px; }
  .service-media img[src*="webdesign"] {
    transform: scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .service:hover .service-media img { transition: none; transform: none; }
}

/* Focus ring for keyboard users (GLOBAL) */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(0,0,0,.6);
  outline-offset: 3px;
  border-radius: 10px;
}

/* === Mobile menu vertical offset (push card lower) === */
@media (max-width: 900px) {
  .site-header.menu-open .nav {
    position: fixed;           /* ensure full-screen overlay context */
    min-height: 100vh;         /* make padding relative to viewport */
    justify-content: center;   /* horizontal center */
    align-items: flex-start !important;  /* start from top, then push down */
    padding-top: 24vh !important;        /* move card further down */
  }
  .site-header.menu-open .nav-links {
    margin-top: 0;             /* no extra offset */
  }
}
/* === Centered ordered lists inside main content (e.g. 3D-Druck: "Ablauf – so arbeiten wir") === */
main.container ol {
  list-style: none;            /* keine Zahlen/Bullets */
  text-align: center;          /* zentrierter Text */
  padding-left: 0;             /* keinen Einzug links */
  margin: 0 auto;              /* Block mittig */
}
main.container ol li::marker { content: ""; }
main.container ol li {
  margin: .5rem 0;              /* comfortable spacing */
  line-height: 1.6;
}
.review-wrapper { margin: 4rem auto; }
@media (max-width: 900px){ .review-wrapper { margin: 3rem auto; } }

/* === Utility: Centered Button Group === */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Abstand zwischen den Buttons */
  margin-top: 1.5rem; /* etwas Abstand zum Text */
}

/* Button style for CTA groups */
.button-group .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  background: #ffffff;     /* weißer Button */
  color: #1a1a1a;
  line-height: 1;
  white-space: nowrap;
}
.button-group .btn:hover{
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Dark primary keeps Vorrang (z.B. "Projekt anfragen") */
.button-group .btn.btn-cta{
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}
.button-group .btn.btn-cta:hover{
  background: #000;
  border-color: #000;
}

/* === Mobile fix: CTA Button Group doesn't overflow on small screens === */
@media (max-width: 700px){
  .button-group{
    flex-wrap: wrap;                 /* allow to break to next line */
    gap: .7rem;
    justify-content: center;
  }
  .button-group .btn{
    width: 100%;                     /* full width buttons on mobile */
    max-width: 520px;                /* but not wider than viewport padding */
    padding: 1rem 1.1rem;            /* slightly larger touch target */
  }
}

/* === Case-Buttons: klare Kontraste auf grauem Hintergrund === */
.case .btn-row a,
.case .btn-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  background: #ffffff;        /* Secondary standard: weißer Button */
  color: #1a1a1a;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.case .btn-row a:hover,
.case .btn-row button:hover {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Primary immer links (erster Button) – dunkler Button */
.case .btn-row a:first-child,
.case .btn-row button:first-child {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}
.case .btn-row a:first-child:hover,
.case .btn-row button:first-child:hover {
  background: #000;
  border-color: #000;
}

/* === Case teaser cards (Digitale Visitenkarte) === */
.case-teasers {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin: 2rem 0 0;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.case-card figure {
  margin: 0;
}

.case-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .case-card img {
    max-width: 200px;
  }
}

.case-card h3 {
  margin: 0.25rem 0 0.25rem;
  line-height: 1.2;
}

.case-card p {
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.case-card .meta {
  font-size: 0.95rem;
  opacity: 0.9;
}

.case-card .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .case-card {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
  }

  .case-card.alt figure {
    order: 2;
  }

  .case-card.alt .copy {
    order: 1;
  }
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.muted-note {
  opacity: 0.9;
}

.cta-subtext {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.blog-reading-meta {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-top-padding {
  margin-top: 3rem;
}

.pricing-note {
  opacity: 0.9;
}

main.container.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem clamp(24px, 5vw, 56px) 3rem clamp(24px, 5vw, 56px);
}

@media (max-width: 700px){
  main.container.page-content{
    padding-left: max(24px, calc(env(safe-area-inset-left, 0px) + 8px));
    padding-right: max(24px, calc(env(safe-area-inset-right, 0px) + 8px));
  }
}

.handwritten-inline {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.3rem;
}

.back-link {
  margin-top: 2rem;
}

.page-title {
  margin-top: 1rem;
}

.page-centered {
  text-align: center;
  padding: 4rem 1rem;
}

.cta-inline {
  margin-top: 1.5rem;
  display: inline-block;
}

.mt-1 {
  margin-top: 1rem;
}

/* === WhatsApp Floating Action Button (Global) === */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green */
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647; /* ensure on top */
  text-decoration: none;
  line-height: 0;
}
.wa-fab:focus-visible {
  outline: 2px solid rgba(0,0,0,.6);
  outline-offset: 3px;
}
.wa-fab svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  fill: #fff !important;
  max-width: none !important;
  max-height: none !important;
  flex: 0 0 auto !important;
}

/* Hide on tablet/desktop */
@media (min-width: 769px) {
  .wa-fab { display: none !important; }
}

/* === Safeguard: prevent long German words (e.g., "Datenschutzerklärung") from overflowing on small screens === */
main.container h1,
main.container h2,
main.container p {
  overflow-wrap: anywhere;   /* modern safe word breaking */
  word-break: normal;        /* keep normal behavior otherwise */
  hyphens: auto;             /* allow soft hyphenation when supported */
}

/* === FAQ Accordion (native <details>/<summary>) === */
.faq-accordion { 
  max-width: 900px; 
  margin: 0 auto; 
  text-align: left; 
  display: grid;                 /* Grid‑Layout für die Cards */
  grid-template-columns: 1fr;    /* mobil: 1 Spalte */
  gap: 12px 24px;                /* vertikal / horizontal Abstand */
}
@media (min-width: 800px){
  .faq-accordion { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.faq-accordion details {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: .25rem 1rem;
  margin: .5rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
/* remove native marker and style our own */
.faq-accordion summary {
  list-style: none;               /* Firefox */
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  padding: .9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
/* plus/minus icon */
.faq-accordion summary::after {
  content: "+";
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 0.5rem;
  transition: transform .2s ease;
}
.faq-accordion details[open] summary::after {
  content: "–";
}

/* answer content */
.faq-accordion .answer { 
  padding: 0 0 1rem 0; 
  color: #333; 
}
.faq-accordion .answer p{ margin: .5rem 0; }

/* smooth-ish open/close */
.faq-accordion details > div { 
  overflow: hidden; 
  max-height: 0; 
  transition: max-height .25s ease; 
}
.faq-accordion details[open] > div { max-height: 800px; }

/* compact on mobile */
@media (max-width: 700px){
  .faq-accordion details { border-radius: 10px; }
  .faq-accordion summary { padding: .8rem 0; }
}
/* === Case Media Slot (Index – Aktuelle Projekte) === */
.case .case-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: block;
  margin: .5rem 0 1rem;
  border: 1px solid #eee;
}

.case .case-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}

/* Hover: leichtes Anheben/Vergrößern wie oben bei Services */
.case article:hover .case-media img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.12));
}
@media (prefers-reduced-motion: reduce) {
  .case article:hover .case-media img { transition: none; transform: none; filter: none; }
}

/* Only show placeholder if NO image is present */
.case .case-media:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px 64px;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3l2-3h8l2 3h3a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}

/* === Case Cards: Buttons überall auf einer Linie === */
.case article{
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Content oben, Buttons unten */
}

.case .btn-row{
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: auto;  /* schiebt Buttons ans Kartenende */
}
.page-section ul,
.page-section ol {
  list-style: none !important;
  padding-left: 0 !important;
}
.page-section li::marker { content: ""; }
/* Reveal-in Animation (global) */
.reveal{
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal { transition: none; transform: none; opacity: 1; }
}

/* Stagger: Services */
.services-grid .service { transition-delay: 0s; }
.services-grid .service:nth-child(1) { transition-delay: .05s; }
.services-grid .service:nth-child(2) { transition-delay: .10s; }
.services-grid .service:nth-child(3) { transition-delay: .15s; }
.services-grid .service:nth-child(4) { transition-delay: .20s; }

/* Stagger: Cases (Aktuelle Projekte) */
.grid-3 > article { transition-delay: 0s; }
.grid-3 > article:nth-child(1) { transition-delay: .05s; }
.grid-3 > article:nth-child(2) { transition-delay: .10s; }
.grid-3 > article:nth-child(3) { transition-delay: .15s; }

/* === Reusable: Centered link row with swipe-underline === */
.underline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
}
.underline-row a {
  position: relative;
  display: inline-block;
  text-decoration: none;      /* override global */
  color: #1a1a1a;
  transition: color 0.3s ease;
}
.underline-row a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;               /* small offset under text */
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.underline-row a:hover,
.underline-row a:focus-visible { color: #000; text-decoration: none; }
.underline-row a:hover::after,
.underline-row a:focus-visible::after { transform: scaleX(1); }

/* Optional active state: keep underline for current page */
.underline-row a[aria-current="page"],
.underline-row a.is-active { color: #000; }
.underline-row a[aria-current="page"]::after,
.underline-row a.is-active::after { transform: scaleX(1); }

/* === Case: Screenshot + NFC Tag nebeneinander (fallback auf untereinander mobil) === */
.case .media-duo {
  display: flex;
  gap: 1rem;                     /* Abstand zwischen Screenshot & Tag */
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;               /* auf kleinen Screens umbrechen */
}
.case .media-duo img {
  flex: 1 1 45%;                 /* beide ungefähr halb/halb */
  max-width: 48%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
@media (max-width: 700px){
  .case .media-duo img { flex-basis: 100%; max-width: 100%; }
}
/* Safeguard: default single-image figure remains block layout */
.case .case-media { display: block !important; }
.case .case-media img { max-width: 100% !important; flex: 0 0 auto !important; }
/* Remove bullets ONLY in Startseiten-Aufbau */
#startseiten-aufbau .bullet-grid{ list-style: none !important; padding-left: 0 !important; }
#startseiten-aufbau .bullet-grid li{ padding-left: 0 !important; }
#startseiten-aufbau .bullet-grid li::before{ content: none !important; }
/* === Blog Cards: float + shadow on hover (universal selectors) === */
/* base card styles (works for various blog list markups) */
.blog-grid .card,
.post-card,
.post-list article,
.posts article,
.blog-cards article {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  transform-origin: center bottom; /* smoother lift */
  transition:
    transform .40s cubic-bezier(.22,.61,.36,1),
    box-shadow .45s cubic-bezier(.22,.61,.36,1),
    border-color .35s ease,
    filter .35s ease; /* for subtle effects */
  will-change: transform, box-shadow;
}

/* elevate on hover/focus */
.blog-grid .card:hover,
.post-card:hover,
.post-list article:hover,
.posts article:hover,
.blog-cards article:hover,
.blog-grid .card:focus-within,
.post-card:focus-within,
.post-list article:focus-within,
.posts article:focus-within,
.blog-cards article:focus-within {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  border-color: #e2e2e2;
}

/* smooth image lift when parent is hovered */
.blog-grid .card img,
.post-card img,
.post-list article img,
.posts article img,
.blog-cards article img {
  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    filter .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.blog-grid .card:hover img,
.post-card:hover img,
.post-list article:hover img,
.posts article:hover img,
.blog-cards article:hover img {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.03);
}

/* keyboard users */
.blog-grid .card a:focus-visible,
.post-card a:focus-visible,
.post-list article a:focus-visible,
.posts article a:focus-visible,
.blog-cards article a:focus-visible { 
  outline: 2px solid rgba(0,0,0,.6);
  outline-offset: 3px; 
  border-radius: 12px; 
}

@media (prefers-reduced-motion: reduce){
  .blog-grid .card,
  .post-card,
  .post-list article,
  .posts article,
  .blog-cards article,
  .blog-grid .card img,
  .post-card img,
  .post-list article img,
  .posts article img,
  .blog-cards article img { transition: none; }
}

/* === Mobile nav: ensure all items (incl. Blog) are visible & scrollable === */
@media (max-width: 900px){
  /* When menu is open, allow long menus to scroll instead of cutting off */
  .site-header.menu-open .nav{
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Stack nav items vertically and make each a full‑width tap target */
  .site-header .nav .nav-links{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }
  .site-header .nav .nav-links li{ width: 100%; }
  .site-header .nav .nav-links a{ display:block; padding: 1.1rem 1.25rem; }
}
