/* =============================================================================
   Putzar Consulting — Main Design System
   All custom properties, fonts, reset, typography, layout utilities
   ============================================================================= */

/* Sprint 6 — Honeypot-Spam-Schutz: visually-hidden Text-Input in CF7-Forms.
   Echte User sehen es nicht (off-screen + tabindex=-1 + aria-hidden), Bots
   füllen blind alle Inputs aus → Server lehnt ab. Open-Source, DSGVO-konform,
   keine Drittanbieter, keine Cookies. */
.putzar-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === Fonts === */
@font-face {
  font-family: 'Cardillac';
  src: url('../fonts/cardillac-reg-webfont.woff2') format('woff2'),
       url('../fonts/cardillac-reg-webfont.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Design Tokens === */
:root {
  /* Core Brand — Deep Trust Palette */
  --background: 210 33% 99%;
  --foreground: 217 65% 17%;

  --primary: 217 65% 17%;
  --primary-foreground: 210 33% 99%;

  --secondary: 218 62% 27%;
  --secondary-foreground: 210 33% 99%;

  --muted: 210 20% 96%;
  --muted-foreground: 220 9% 46%;

  --accent: 218 45% 92%;
  --accent-foreground: 217 65% 17%;

  --border: 217 30% 88%;
  --ring: 217 65% 17%;
  --radius: 0.25rem;

  /* Shadows */
  --shadow-elegant: 0 4px 20px -4px hsla(217, 65%, 17%, 0.08);
  --shadow-card: 0 8px 32px -8px hsla(217, 65%, 17%, 0.12);
  --shadow-float: 0 20px 50px -12px hsla(217, 65%, 17%, 0.18);

  /* Typography */
  --font-serif: 'Cardillac', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --section-padding-cluster: clamp(2.5rem, 5vw, 4rem); /* Sub-Sections innerhalb eines Clusters (z.B. tech-stack) */
  --container-max: 1280px;
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  font-family: var(--font-sans);
  font-weight: 400;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: hsl(var(--secondary));
  text-decoration-skip-ink: auto;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 100;
  line-height: 1.2;
  color: hsl(var(--primary));
}

h1 {
  /* Default h1 falls back to Tier 2 (section-scale). Explicit .heading-hero uplifts to Tier 1. */
  font-size: var(--font-size-4xl);
}
@media (min-width: 768px)  { h1 { font-size: var(--font-size-5xl); } }
@media (min-width: 1024px) { h1 { font-size: var(--font-size-6xl); } }

h2 {
  /* Default h2 ≡ Tier 4 (subsection). Components should add .heading-md explicitly. */
  font-size: var(--font-size-3xl);
}
@media (min-width: 768px) { h2 { font-size: var(--font-size-4xl); } }

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--primary));
}

p {
  max-width: 65ch;
}

/* Typography Utility Classes */
.label-sm {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 0.75rem;
  /* Alignment vom Parent erben — .section-header (text-center) zentriert,
     2-Col-Layouts bleiben linksbündig (default text-align: start) */
}

/* ============================
   Typography Tokens (single source of truth for heading sizes)
   Matches Tailwind: text-lg/xl/2xl/3xl/4xl/5xl/6xl/7xl
   ============================ */
:root {
  --font-size-lg: 1.125rem;    /* 18 */
  --font-size-xl: 1.25rem;     /* 20 */
  --font-size-2xl: 1.5rem;     /* 24 */
  --font-size-3xl: 1.875rem;   /* 30 */
  --font-size-4xl: 2.25rem;    /* 36 */
  --font-size-5xl: 3rem;       /* 48 */
  --font-size-6xl: 3.75rem;    /* 60 */
  --font-size-7xl: 4.5rem;     /* 72 */
}

/* Heading-Utilities ausgelagert nach assets/css/headings.css (2026-04-25) */

.img-elegant {
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
}

.icon--inverted {
  color: hsl(var(--primary-foreground));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .label-sm {
  margin-bottom: 0.75rem;
  display: block;
}

/* === Layout === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-text {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.section-padding--flush-top {
  padding-top: 0;
  padding-bottom: var(--section-padding);
}

.bg-primary-subtle {
  background: hsl(var(--primary) / 0.02);
}

.u-text-center {
  text-align: center;
}

.scroll-offset {
  scroll-margin-top: 6rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn--primary:hover {
  background-color: hsl(var(--secondary));
}

.btn--inverted {
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

.btn--inverted:hover {
  background-color: hsl(var(--accent));
}

/* === Accessibility === */
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip-Link: visually hidden off-screen, visible on :focus-visible */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus-visible {
  left: 50%;
  transform: translateX(-50%);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Icons === */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================================================
   Phase 2 — Header, Footer & Legal Modals
   ============================================================================= */

/* ── Sticky Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
  background: transparent;
}

.site-header.header--scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-elegant);
}

/* Unterseiten: Header sofort solid (ohne Scroll-Wait) */
body:not(.home) .site-header {
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-elegant);
}
body:not(.home) .header__logo-img {
  height: 44px;
}

/* ── Header Inner ── */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .header__inner {
    height: 5rem;
    padding: 0 1.5rem;
  }
}

/* ── Logo ── */
.header__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.header--scrolled .header__logo-img {
  height: 44px;
}

/* Startseite: Logo initial versteckt */
body.home .header__logo-img {
  opacity: 0;
  transform: translateX(-20px);
  visibility: hidden;
}

body.home .header__logo-img.is-visible {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Unterseiten: Logo immer sichtbar */
body:not(.home) .header__logo-img {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* ── Desktop Navigation ── */
.header__nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header__nav-desktop {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .header__nav-desktop {
    gap: 3rem;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-list {
    gap: 3rem;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-item.is-active .nav-link {
  color: hsl(var(--primary));
}

/* Underline-Animation */
.nav-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: hsl(var(--primary));
  width: 0;
  transition: width 0.3s ease;
}

.nav-link:hover .nav-underline,
.nav-item.is-active .nav-underline {
  width: 100%;
}

/* ── Kontakt-Button ── */
.btn.btn--kontakt {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.btn.btn--kontakt:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn--kontakt-sm {
  padding: 0.375rem 0.75rem;
}

/* ── Hamburger ── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 50;
  position: relative;
}

.header__nav-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .header__nav-mobile .btn--kontakt-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
  }
  .header__logo-img {
    height: 40px;
  }
  .header--scrolled .header__logo-img {
    height: 36px;
  }
}

@media (min-width: 768px) {
  .hamburger,
  .header__nav-mobile {
    display: none;
  }
}

.hamburger__line {
  display: block;
  width: 20px;
  height: 1px;
  background: hsl(var(--primary));
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  position: fixed;
  top: 4rem;
  right: 0;
  bottom: 0;
  left: 0;
  background: hsl(var(--background));
  background-color: hsl(var(--background));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 2rem 1.5rem;
}

/* (alt: visibility-toggle entfernt — ersetzt durch pointer-events oben) */

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__list .nav-link {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: hsl(var(--muted-foreground));
}

.mobile-menu__list .nav-item.is-active .nav-link {
  color: hsl(var(--primary));
}

.mobile-menu__kontakt {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: hsl(var(--primary));
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

/* Items: keine Stagger-Animation — immer sichtbar, sobald Menu offen ist. */
.mobile-menu__list .nav-item,
.mobile-menu__kontakt {
  opacity: 1;
  transform: none;
}

/* =============================================================================
   Footer
   ============================================================================= */

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  background: hsl(var(--primary) / 0.02);
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.footer__main {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
  }
}

/* ── Brand Column ── */
.footer__logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer__desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 24rem;
  margin-bottom: 2rem;
}

/* ── Kontaktdaten ── */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
  text-align: left;
}

.footer__contact-item:hover {
  color: hsl(var(--primary));
}

.footer__contact-item--static {
  cursor: default;
  align-items: flex-start;
}

.footer__contact-item--static:hover {
  color: hsl(var(--muted-foreground));
}

.footer__contact-item .icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

/* ── Navigation Columns ── */
.footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer__nav-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-list a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.footer__nav-list a:hover {
  color: hsl(var(--primary));
}

/* ── Bottom Bar ── */
.footer__bottom {
  border-top: 1px solid hsl(var(--border) / 0.3);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.6);
  letter-spacing: 0.025em;
  order: 2;
}

@media (min-width: 768px) {
  .footer__copyright {
    order: 1;
  }
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  order: 1;
}

@media (min-width: 768px) {
  .footer__legal {
    order: 2;
  }
}

.footer__legal-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: color 0.3s;
}

.footer__legal-link:hover {
  color: hsl(var(--primary));
}

.footer__legal-sep {
  color: hsl(var(--border) / 0.5);
}

/* =============================================================================
   Legal Modals
   ============================================================================= */

/* ── Modal Overlay + Container ── */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal__overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--primary) / 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* ── Modal Content ── */
.legal-modal__content {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  box-shadow: var(--shadow-float);
  padding: 2rem;
  animation: modal-in 0.35s ease-out;
}

@media (min-width: 768px) {
  .legal-modal__content {
    padding: 3rem;
  }
}

.legal-modal__content--sm { max-width: 36rem; }
.legal-modal__content--md { max-width: 42rem; }

/* ── Animation ── */
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Close Button ── */
.legal-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.3s;
}

.legal-modal__close:hover {
  color: hsl(var(--primary));
}

/* ── Title ── */
.legal-modal__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .legal-modal__title {
    font-size: 1.875rem;
  }
}

/* ── Body ── */
.legal-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
}

.legal-modal__body h3 {
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.legal-modal__body h4 {
  font-weight: 500;
  color: hsl(var(--primary) / 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.legal-modal__body p {
  font-size: 0.75rem;
}

.legal-modal__body ul {
  font-size: 0.75rem;
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-modal__body ul li {
  margin-bottom: 0.25rem;
}

.legal-modal__footer {
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.legal-modal__footer p {
  color: hsl(var(--muted-foreground) / 0.6);
}

/* =============================================================================
   Reduced Motion — Phase 2 additions
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header__logo-img,
  .hamburger__line,
  .nav-underline,
  .nav-link,
  .btn.btn--kontakt {
    transition: none;
  }

  .mobile-menu,
  .mobile-menu__list .nav-item,
  .mobile-menu__kontakt {
    transition: none;
  }

  .legal-modal__content {
    animation: none;
  }
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */

/* Parallax-Ersatz (kein JS nötig, performant) */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem; /* Platz für Sticky Header */
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* CSS-Parallax (desktop/tablet) */
  opacity: 0.4;
}

/* Parallax auf Mobile deaktivieren (iOS-Breakage, Performance) */
@media (max-width: 767px) {
  .hero-home__bg {
    background-attachment: scroll;
  }
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0.2),
    hsl(var(--background) / 0.4) 50%,
    hsl(var(--background))
  );
}

.hero-home__content {
  text-align: center;
  max-width: 80rem; /* 1280px — volle Container-Breite für H1 */
  margin-inline: auto;
}

.hero-home__subtext {
  max-width: 48rem; /* React max-w-3xl = 768px */
  margin-inline: auto;
}

/* H1 zweite Zeile bekommt mehr Breite, damit 'Finanzmanagement und Unternehmenssteuerung' in eine Zeile passt */
.hero-home__headline-line:nth-child(2) {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .hero-home__headline-line:nth-child(2) {
    white-space: normal;
  }
}

/* Hero-Logo */
.hero-home__logo {
  height: 14rem;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  transform-origin: center center;
  will-change: opacity, transform;
}

@media (min-width: 640px) { .hero-home__logo { height: 14rem; } }
@media (min-width: 768px) { .hero-home__logo { height: 18rem; } }
@media (min-width: 1024px) { .hero-home__logo { height: 20rem; } }

/* Tagline */
.hero-home__tagline {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 auto 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-home__tagline {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
  }
}

/* H1 */
.hero-home__headline {
  font-family: var(--font-serif);
  color: hsl(var(--primary));
  line-height: 1.35;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-home__headline-line {
  display: block;
  font-size: 1.875rem; /* 30px Mobile-bis-Tablet — angeglichen an H2 Mobile (var(--font-size-3xl)). War 18/24/30 stufenweise. */
}

@media (min-width: 1024px) { .hero-home__headline-line { font-size: 2.25rem; } }

/* Subtext */
.hero-home__subtext {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.625;
  text-align: center;
}

/* CTA */
.hero-home__cta {
  margin-top: 2rem;
}

/* Scroll-Indicator */
.hero-home__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4rem;
  background: linear-gradient(
    to bottom,
    transparent,
    hsl(var(--primary) / 0.3),
    hsl(var(--primary) / 0.6)
  );
}

@keyframes scroll-indicator-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(0.5rem); }
}

.scroll-indicator-bounce {
  animation: scroll-indicator-bounce 2s ease-in-out infinite;
}

/* ============================================================
   HOMEPAGE — LOGO MARQUEE
   ============================================================ */

.logo-marquee {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid hsl(var(--border) / 0.3);
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  position: relative;
}

@media (min-width: 768px) { .logo-marquee { padding: 4rem 0; } }

.logo-marquee__wrapper {
  position: relative;
}

.logo-marquee__item {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.6);
  white-space: nowrap;
  letter-spacing: 0.05em;
  min-width: 140px;
  text-align: center;
}

@media (min-width: 768px) {
  .logo-marquee__item { font-size: 1.25rem; min-width: 180px; }
}

/* Fade-Edges */
.logo-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 10;
  pointer-events: none;
}

.logo-marquee__fade--left  { left: 0;  background: linear-gradient(to right, hsl(var(--background)), transparent); }
.logo-marquee__fade--right { right: 0; background: linear-gradient(to left,  hsl(var(--background)), transparent); }

@media (min-width: 768px) {
  .logo-marquee__fade { width: 10rem; }
}

/* Marquee-Animation */
.marquee-track { overflow: hidden; position: relative; }

.marquee-scroll {
  display: flex;
  gap: 3rem;
  animation: marquee-scroll 30s linear infinite;
}

@media (min-width: 768px) { .marquee-scroll { gap: 5rem; } }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HOMEPAGE — PHILOSOPHIE
   ============================================================ */

.section-philosophie {
  padding: 5rem 0;
  background: hsl(var(--primary) / 0.02);
}

@media (min-width: 768px) { .section-philosophie { padding: 8rem 0; } }
@media (min-width: 1024px) { .section-philosophie { padding: 10rem 0; } }

.philo-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .philo-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 1024px) { .philo-grid { gap: 6rem; } }

.philo-column {
  position: relative;
}

.philo-column__line {
  position: absolute;
  left: -1rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: hsl(var(--primary) / 0.2);
}

.philo-column__content { padding-left: 2rem; }
@media (min-width: 768px) { .philo-column__content { padding-left: 3rem; } }

.philo-column__subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 1rem;
}

.philo-column__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .philo-column__title { font-size: 2.25rem; } }

.philo-column__text {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.philo-column__quote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: hsl(var(--primary));
}

/* ============================================================
   HOMEPAGE — KOMPETENZFELDER
   ============================================================ */

.section-kompetenz {
  padding: 5rem 0;
}

@media (min-width: 768px) { .section-kompetenz { padding: 8rem 0; } }
@media (min-width: 1024px) { .section-kompetenz { padding: 10rem 0; } }

.kompetenz-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .kompetenz-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.kompetenz-card {
  position: relative;
  padding: 2rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--primary) / 0.1);
  transition: all 0.5s ease;
}

@media (min-width: 768px) { .kompetenz-card { padding: 2.5rem; } }

.kompetenz-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-0.25rem);
}

.kompetenz-card__number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: hsl(var(--primary) / 0.1);
  transition: color 0.3s;
}

.kompetenz-card:hover .kompetenz-card__number {
  color: hsl(var(--primary) / 0.2);
}

.kompetenz-card__subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 0.5rem;
}

.kompetenz-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .kompetenz-card__title { font-size: 1.875rem; } }

.kompetenz-card__desc {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.kompetenz-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.3s;
}

.kompetenz-card__link:hover { color: hsl(var(--secondary)); }
.kompetenz-card__link:hover .icon { transform: translateX(0.25rem); }
.kompetenz-card__link .icon { transition: transform 0.3s; }

/* ============================================================
   HOMEPAGE — CTA
   ============================================================ */

.section-cta {
  padding: var(--section-padding) 0;
  background: hsl(var(--primary));
}

@media (min-width: 768px) { .section-cta { padding: var(--section-padding) 0; } }
@media (min-width: 1024px) { .section-cta { padding: var(--section-padding) 0; } }

.section-cta__inner { text-align: center; }

.section-cta__headline {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: hsl(var(--background));
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .section-cta__headline { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-cta__headline { font-size: 3rem; } }

.section-cta__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--background) / 0.8);
  margin: 0 auto 3rem;
  text-align: center;
}

@media (min-width: 768px) { .section-cta__subtitle { font-size: 1.5rem; } }

.bg-primary-subtle .section-cta__subtitle {
  color: hsl(var(--primary) / 0.8);
}

.btn--inverted {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: hsl(var(--background));
  color: hsl(var(--primary));
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s;
}

.btn--inverted:hover {
  background: hsl(var(--muted));
}

/* =============================================================================
   Phase 4 — Unterseiten CSS (Page Hero, Kompetenz, Leistungen, Partner)
   ============================================================================= */

/* ============================
   Page Hero (Subpages)
   ============================ */
.page-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { min-height: 90vh; }
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.3;
}
@media (max-width: 1023px) {
  .page-hero__bg { background-attachment: scroll; }
}

/* React-Analogie: bg-gradient-to-b from-transparent via-background/50 via-50% to-background */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    hsl(var(--background) / 0.5) 50%,
    hsl(var(--background)) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: hsl(var(--primary));
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.page-hero__label {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.page-hero__title {
  color: hsl(var(--primary));
}

.hero-title--accent {
  display: block;
  font-style: italic;
  color: hsl(var(--secondary));
}

.page-hero__subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

/* Scroll-Indicator (subpages) — analog .hero-home__scroll-indicator,
   reuses @keyframes scroll-indicator-bounce from homepage block above. */
.page-hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    transparent,
    hsl(var(--primary) / 0.3),
    hsl(var(--primary) / 0.6)
  );
  pointer-events: none;
}

/* JS-driven scroll-fade override (putzar-page-hero.js).
   Disables the .scroll-reveal entry transition once active scroll begins,
   so rAF inline-style updates flow without 0.8s lag. */
.page-hero__content.is-scrolling {
  transition: none;
  will-change: transform, opacity;
}

/* ============================
   Kompetenz — Philosophie
   ============================ */
.philosophie-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .philosophie-grid { grid-template-columns: 1fr 1fr; }
}

.philosophie-text {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
.philosophie-text p + p { margin-top: 1.5rem; }

.quote-card {
  background: hsl(var(--primary) / 0.02);
  border: 1px solid hsl(var(--border) / 0.5);
  padding: 2.5rem;
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .quote-card { padding: 3rem; }
}
.quote-card__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--primary));
  line-height: 1.625;
  font-style: italic;
}
@media (min-width: 768px) {
  .quote-card__text { font-size: 1.875rem; }
}
.quote-card__attribution {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
}

/* ============================
   Kompetenz — Section Header (subtitle)
   ============================ */
.section-header__subtitle {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.625;
}
.section--inverted .section-header__subtitle {
  color: hsl(var(--primary-foreground) / 0.9);
}

/* ============================
   Kompetenz — Werte
   ============================ */
.werte-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .werte-grid { grid-template-columns: repeat(2, 1fr); }
}
.werte-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.werte-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}
.werte-card__icon { flex-shrink: 0; }
.werte-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}
.werte-card__text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

/* ============================
   Icon Box Variants
   ============================ */
.icon-box--square {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  color: hsl(var(--secondary));
}
.icon-box--inverted {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary-foreground) / 0.1);
  border: 1px solid hsl(var(--primary-foreground) / 0.2);
  border-radius: var(--radius);
  padding: 0.5rem;
  color: hsl(var(--primary-foreground));
}
.icon-box--subtle {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  color: hsl(var(--secondary));
}
.icon-box--round {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
}

/* ============================
   Kompetenz — Ansatz
   ============================ */
.ansatz-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}
.ansatz-wrapper .heading-section { text-align: center; margin-bottom: 2rem; }
.ansatz-steps { display: flex; flex-direction: column; gap: 2rem; }
.ansatz-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.ansatz-step__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: hsl(var(--border));
}
.ansatz-step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}
.ansatz-step__text {
  color: hsl(var(--muted-foreground));
}

/* ============================
   Kompetenz — Section Inverted
   ============================ */
.section--inverted {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.text-primary-foreground-70 {
  color: hsl(var(--primary-foreground) / 0.7);
}
.text-primary-foreground-80 {
  color: hsl(var(--primary-foreground) / 0.8);
}

/* ============================
   Kompetenz — Synergie (Expertise Cards)
   ============================ */
.expertise-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
.expertise-card--inverted {
  background: hsl(var(--primary-foreground) / 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--primary-foreground) / 0.2);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  height: 100%;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .expertise-card--inverted {
    padding: 2.5rem 1.75rem;
  }
}

.expertise-card--inverted .icon-box--inverted {
  margin-bottom: 2rem;
}

.expertise-card--inverted .expertise-card__title {
  margin-bottom: 2rem;
}
.expertise-card--inverted:hover {
  transform: scale(1.02) translateY(-0.25rem);
}
.expertise-card__title {
  /* font-family + font-size now from .heading-sm utility; kept here for margin + legacy fallback */
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
}
.section--inverted .expertise-card__title {
  color: hsl(var(--primary-foreground));
}
.expertise-card__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.expertise-item--inverted {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.9);
}
.expertise-item--inverted .icon.icon--arrow-right {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary-foreground) / 0.7);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ============================
   Kompetenz — Tech Expertise
   ============================ */
.tech-intro {
  padding: var(--section-padding-cluster) 0;
}
@media (min-width: 768px) {
  .tech-intro { padding: var(--section-padding-cluster) 0; }
}

.tech-section {
  padding: var(--section-padding-cluster) 0;
}
@media (min-width: 768px) {
  .tech-section { padding: var(--section-padding-cluster) 0; }
}
.tech-section__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .tech-section__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .tech-section__sticky { position: sticky; top: 8rem; }
  .tech-section__sticky--reversed { text-align: right; }
}
.tech-section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .tech-section__header--reversed { flex-direction: row-reverse; }
}
.tech-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--primary));
}
@media (min-width: 768px) {
  .tech-section__title { font-size: 1.875rem; }
}
.tech-section__desc {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
.tech-section__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tech-item__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.tech-item__inner--reversed { flex-direction: row-reverse; }
/* .tech-item__text--reversed: text-align entfernt (2026-04-25) — Items in SAP/Analytics-Sections folgen jetzt dem Parent-Alignment (linksbündig) wie in den ERP/Integration-Sections, statt hardcoded rechtsbündig (wirkte bei mehrzeiligen Item-Namen wie zentriert). */

/* Tech Item Cards */
.tech-item {
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}
.tech-item.hover--right:hover { transform: translateX(0.5rem); }
.tech-item.hover--left:hover  { transform: translateX(-0.5rem); }

/* .tech-item__name — zentralisiert in headings.css (Phase 4.12) */
.tech-item:hover .tech-item__name {
  color: hsl(var(--secondary));
}
.tech-item__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}
.tech-item__arrow {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground) / 0.5);
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: color 0.2s;
}
.tech-item:hover .tech-item__arrow {
  color: hsl(var(--secondary));
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: hsl(var(--border));
  border: none;
  margin: 0;
}

/* Reversed Tech Section */
@media (min-width: 1024px) {
  .tech-section--reversed > :first-child { order: 2; }
  .tech-section--reversed > :last-child  { order: 1; }
}

/* ============================
   Kompetenz — Soft Skills
   ============================ */
.soft-skills-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .soft-skills-grid { grid-template-columns: repeat(3, 1fr); }
}
.soft-skill-card {
  text-align: center;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.soft-skill-card:hover {
  transform: scale(1.02);
}
.soft-skill-card .icon-box--round { margin: 0 auto 1.5rem; }
.soft-skill-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}
.soft-skill-card__text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

/* Core Values Bar */
.core-values-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .core-values-bar { gap: 1.5rem; }
}
.core-value-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 9999px;
}
.core-value-pill__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

/* CTA Content */
.cta-content {
  text-align: center;
}
.cta-content__text {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* Icon Utilities */
.icon--sm { width: 1rem; height: 1rem; }
.icon--secondary { color: hsl(var(--secondary)); }

/* ============================
   Leistungen — Service Blocks
   ============================ */
.service-block + .service-block {
  margin-top: 5rem;
}
@media (min-width: 768px) {
  .service-block + .service-block {
    margin-top: 8rem;
  }
}
@media (min-width: 1024px) {
  .service-block + .service-block {
    margin-top: 12rem;
  }
}

.service-block__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .service-block__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

@media (min-width: 768px) {
  .service-block--reversed .service-block__image-col {
    order: 2;
  }
  .service-block--reversed .service-block__text-col {
    order: 1;
  }
}

/* Service Block — Image */
.service-block__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.service-block__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.3), transparent);
  pointer-events: none;
}
.service-block__badge-wrapper {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}
.service-block__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

/* Service Block — Text */
.service-block__text-col .heading-section {
  margin-bottom: 1.5rem;
}
.service-block__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  margin-bottom: 2rem;
  font-style: italic;
}
.service-block__details {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.service-block__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.service-block__detail-item + .service-block__detail-item {
  margin-top: 0.75rem;
}
.service-block__bullet {
  width: 0.375rem;
  height: 0.375rem;
  background: hsl(var(--secondary));
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* ============================
   Leistungen — FAQ
   ============================ */
.faq__list {
  max-width: 48rem;
  margin: 0 auto;
}
.faq__item {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: hsl(var(--card));
  cursor: pointer;
}
.faq__item + .faq__item {
  margin-top: 1.5rem;
}
.faq__question {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: hsl(var(--primary));
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }
.faq__icon {
  color: hsl(var(--secondary));
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details[open] .faq__icon {
  transform: rotate(45deg);
}
.faq__answer {
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

/* ============================
   Partner — Grid
   ============================ */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Partner — Card Wrapper */
.partner-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Partner — Logo Area */
.partner-card__logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}
.partner-card__logo {
  max-height: 4rem;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
}
.partner-card__logo--inverted {
  filter: grayscale(1) invert(1);
}
.partner-card__logo-placeholder {
  height: 5rem;
  margin-bottom: 1rem;
}

/* Partner — Card */
.partner-card {
  flex: 1;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover {
  border-color: hsl(var(--secondary) / 0.3);
  box-shadow: var(--shadow-card);
}

/* Partner — Typography */
.label-xs {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 0.5rem;
}
.partner-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}
.partner-card__firm {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* Partner — Contact */
.partner-card__address {
  margin-top: 1rem;
  font-style: normal;
}
.partner-card__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}
.partner-card__contact-row svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: hsl(var(--secondary));
}
.partner-card__contact-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.partner-card__contact-row a:hover {
  color: hsl(var(--primary));
}

/* ============================
   Partner — Philosophie
   ============================ */
.philosophie__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .philosophie__grid { grid-template-columns: 1fr 1fr; }
}

.philosophie__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.philosophie__card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
}
.philosophie__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: hsl(var(--secondary));
  border-radius: 9999px;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.philosophie__card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}
.philosophie__card-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================
   BLOG: Post Hero (single.php)
   ============================ */
.post-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@media (min-width: 768px) {
  .post-hero { min-height: 60vh; }
}

.post-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0;
  background: linear-gradient(
    to top,
    hsl(var(--background)),
    hsl(var(--background) / 0.85) 40%,
    transparent 100%
  );
}

.post-hero__content {
  text-align: center;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.post-meta__sep {
  opacity: 0.5;
}

/* ============================
   BLOG: Post Card (content-post.php)
   ============================ */
.post-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px hsl(var(--primary) / 0.15);
}

.post-card__image-link {
  display: block;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
}

.post-card__body {
  padding: 1.25rem;
}

.post-card__categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.post-card__title a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card__title a:hover {
  color: hsl(var(--primary));
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-card__meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card__meta-sep {
  opacity: 0.5;
}

/* ============================
   BLOG: Category Badge
   ============================ */
.category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  text-decoration: none;
  transition: background 0.2s ease;
}
.category-badge:hover {
  background: hsl(var(--primary) / 0.2);
}

/* ============================
   BLOG: Tag Badge
   ============================ */
.tag-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag-badge:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* ============================
   BLOG: Utility Classes
   ============================ */
.post-tags {
  padding-bottom: 3rem;
}

.post-section {
  padding-bottom: 4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================
   BLOG: Author Box
   ============================ */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}

.author-box__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
}

.author-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.author-box__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: hsl(var(--foreground));
}

.author-box__bio {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* ============================
   BLOG: Post Navigation
   ============================ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .post-nav { grid-template-columns: 1fr 1fr; }
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-nav__link:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-1px);
}

.post-nav__link--next {
  text-align: right;
}

.post-nav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.post-nav__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}

/* ============================
   BLOG: Post Grid
   ============================ */
.post-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================
   BLOG: Pagination
   ============================ */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination__list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination__item a,
.pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pagination__item a:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.pagination__item--active span {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ============================
   BLOG: Empty State
   ============================ */
.empty-state {
  text-align: center;
  padding: 5rem 0;
}

.empty-state__text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* ============================
   BLOG: Section Modifier
   ============================ */
.section-padding--flush-top {
  padding-top: 0;
}

/* ============================
   BLOG: Prose (Gutenberg Content)
   ============================ */
.prose {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: hsl(var(--foreground));
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: hsl(var(--foreground));
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 3px solid hsl(var(--primary));
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.3);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.prose a:hover {
  opacity: 0.8;
}

.prose code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: hsl(var(--muted));
}

.prose pre {
  background: hsl(var(--muted));
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 2.5rem 0;
}

/* ==========================================================================
   PHASE 7 — ANIMATIONEN
   ScrollReveal · TextReveal · MagneticButton · Fade-in · Blobs · Noise · Card Hover
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ScrollReveal — IntersectionObserver CSS States
   -------------------------------------------------------------------------- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-down {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed,
.scroll-reveal-up.revealed,
.scroll-reveal-down.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* --------------------------------------------------------------------------
   2. Fade-in — CSS-only hero load animation (no Observer needed)
   -------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-load 0.6s ease-out forwards;
}

@keyframes fade-in-load {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   3. TextReveal — Word-by-word staggered animation
   -------------------------------------------------------------------------- */

.text-reveal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
}

.word-reveal {
  display: inline-block;
  overflow: hidden;
}

.word-reveal-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: text-reveal-word 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards paused;
}

.text-reveal.revealed .word-reveal-inner {
  animation-play-state: running;
}

@keyframes text-reveal-word {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   4. MagneticButton — Smooth transform transition on hover
   -------------------------------------------------------------------------- */

.magnetic-btn {
  display: inline-block;
  padding: 0.5rem;
  transition: transform 0.15s ease-out;
  will-change: auto;
}

.magnetic-btn:hover {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   5. Background Blobs — Fixed CSS-only floating animations
   -------------------------------------------------------------------------- */

.background-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  will-change: transform;
  contain: layout style;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: hsl(var(--primary) / 0.3);
  top: -200px;
  left: -200px;
  animation: blob-float-1 20s ease-in-out infinite;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: hsl(var(--accent) / 0.2);
  bottom: -150px;
  right: -150px;
  animation: blob-float-2 25s ease-in-out infinite;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: hsl(var(--secondary) / 0.15);
  top: 50%;
  left: 50%;
  animation: blob-float-3 30s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(100px, 50px) scale(1.1); }
  66%       { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-80px, -60px) scale(1.05); }
  66%       { transform: translate(60px, -80px) scale(0.95); }
}

@keyframes blob-float-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33%       { transform: translate(-40%, -60%) scale(1.1); }
  66%       { transform: translate(-60%, -40%) scale(0.9); }
}

/* --------------------------------------------------------------------------
   6. Noise Overlay — Fixed SVG texture at 3% opacity
   -------------------------------------------------------------------------- */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   7. Card Hover — Lift with translateY and box-shadow
   -------------------------------------------------------------------------- */

.card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px hsl(var(--primary) / 0.15);
}

/* --------------------------------------------------------------------------
   8. prefers-reduced-motion — Disable all animations (ANIM-05 / WCAG 2.1)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-up,
  .scroll-reveal-down,
  .scroll-reveal-left,
  .scroll-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .word-reveal-inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-scroll {
    animation: none !important;
  }

  .blob {
    animation: none !important;
  }

  .scroll-indicator-bounce {
    animation: none !important;
  }

  /* JS putzar-page-hero.js bails on reduced-motion; this guards inline styles
     in case any slipped through (e.g. user toggled the OS preference mid-session). */
  .page-hero__content {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-hero__scroll-indicator {
    opacity: 1 !important;
  }

  .card-hover:hover {
    transform: none !important;
  }

  .contact-modal,
  .contact-modal__dialog,
  .toast-notification {
    transition: none !important;
  }
}

/* =============================================================================
   Phase 8 — Kontaktformular (CF7 im Modal-Overlay)
   ============================================================================= */

/* =============================================
   1. Contact Modal
   ============================================= */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--primary) / 0.8);
  backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  padding: 1rem;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal.is-open .contact-modal__dialog {
  transform: scale(1) translateY(0);
}

.contact-modal__content {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.2);
  flex-shrink: 0;
}

.contact-modal .wpcf7,
.contact-modal__form-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-modal__footer {
  flex-shrink: 0;
}

.contact-modal .hidden-fields-container,
.contact-modal fieldset.hidden-fields-container {
  display: none !important;
  border: 0;
  margin: 0;
  padding: 0;
}

.contact-modal .wpcf7-response-output:empty {
  display: none;
}

.contact-modal__subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.contact-modal__close {
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-modal__close:hover {
  background: hsl(var(--muted));
}

.contact-modal__footer {
  padding: 0 1.5rem 1.5rem;
}

.contact-modal__hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.contact-modal__phone-link {
  color: hsl(var(--primary));
}

.contact-modal__phone-link:hover {
  text-decoration: underline;
}

/* =============================================
   2. CF7 Custom Styling (Default-CSS deaktiviert)
   ============================================= */

.contact-modal .wpcf7-form {
  padding: 1.5rem;
}

.contact-modal .form-field {
  margin-bottom: 1.25rem;
}

.contact-modal .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-modal .form-label .icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

/* Input & Textarea */
.contact-modal .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border) / 0.3);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.contact-modal .wpcf7-form-control:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-color: hsl(var(--primary));
}

.contact-modal .wpcf7-textarea {
  resize: none;
}

/* Acceptance Checkbox */
.contact-modal .form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-modal .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  cursor: pointer;
}

/* Submit-Button */
.contact-modal .wpcf7-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
  letter-spacing: 0.025em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-modal .wpcf7-submit:hover {
  background: hsl(var(--secondary));
}

.contact-modal .wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* CF7 Spinner (Loading) */
.contact-modal .wpcf7-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--primary-foreground) / 0.3);
  border-top-color: hsl(var(--primary-foreground));
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

/* Fehlermeldungen */
.contact-modal .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: hsl(0 84% 60%);
  margin-top: 0.25rem;
}

.contact-modal .wpcf7-response-output {
  font-size: 0.8125rem;
  padding: 0.75rem;
  margin: 0.75rem 0 0;
  border: 1px solid hsl(var(--border) / 0.3);
}

/* =============================================
   3. Toast-Notification
   ============================================= */

.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification strong {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.toast-notification span {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* =============================================
   4. Keyframes
   ============================================= */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== 404 Error Page ===== */

.error-page {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) 1.5rem;
}

.error-page__inner {
  max-width: 600px;
}

.error-page__number {
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 100;
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -2rem;
}

.error-page__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 100;
  margin-bottom: 1rem;
}

.error-page__text {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-inline: auto;
}

.error-page .btn--inverted {
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary-foreground) / 0.3);
}

.error-page .btn--inverted:hover,
.error-page .btn--inverted:focus-visible {
  background: hsl(var(--primary-foreground) / 0.1);
}


/* ============================
   Team-Member Layout (alternating 2-column grid)
   ============================ */
.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
@media (min-width: 768px) { .team-members-list { gap: 7rem; } }

.team-member {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .team-member { grid-template-columns: 2fr 3fr; gap: 4rem; }
  .team-member--reversed .team-member__image { order: 2; }
  .team-member--reversed .team-member__content { order: 1; }
}

.team-member__image { position: relative; }
@media (min-width: 768px) {
  .team-image-wrapper { position: sticky; top: 6rem; }
}

.team-image-container {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: hsl(var(--muted) / 0.1);
}
.team-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.2), transparent);
  pointer-events: none;
}
.team-member__image img,
.team-member__image picture { width: 100%; height: 100%; display: block; }
.team-member__image img { object-fit: cover; }

.team-member__role {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: hsl(var(--secondary));
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.team-member__logo {
  height: 4rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .team-member__logo { height: 5rem; } }

.team-member__bio {
  margin-bottom: 2rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
}
.team-member__bio p { margin: 0 0 1rem 0; }
.team-member__bio p:last-child { margin-bottom: 0; }

.team-member__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.team-member__competencies { margin-bottom: 2rem; }
.team-member__competencies ul { list-style: none; padding: 0; margin: 0; }
.team-member__competencies li {
  display: flex;
  gap: 0.75rem;
  padding: 0.375rem 0;
  line-height: 1.6;
  color: hsl(var(--foreground));
}
.team-member__bullet {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.team-member__summary {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: hsl(var(--primary));
  line-height: 1.6;
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid hsl(var(--secondary));
}

.team-member__disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground) / 0.7);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.team-member__expertise { margin-top: 1.5rem; }
.team-member__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-member__pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
}

/* ============================
   Section-Paddings (Wave 1-UAT-3 reactive fix)
   ============================ */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}
.section-padding--flush-top { padding-top: 0; }
.section-padding--flush-bottom { padding-bottom: 0; }

/* Gap between service-blocks (Leistungen) */
.services-list { display: flex; flex-direction: column; gap: 5rem; }
@media (min-width: 768px) { .services-list { gap: 8rem; } }

/* ============================
   Partner-Card Logo-Placeholder + Wordmark Fallback (Phase 4.5-C)
   ============================ */
.partner-card__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--primary) / 0.04);
  border: 1px solid hsl(var(--primary) / 0.08);
  border-radius: 2px;
}
.partner-card__wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 100;
  color: hsl(var(--primary));
  letter-spacing: 0.02em;
  text-align: center;
}