/* ============================================================
   1. Custom Properties — Design Tokens
   ============================================================ */
:root {
  /* Farben */
  --color-primary:      #035A7D;
  --color-secondary:    #4A4644;
  --color-accent:       #F1A503;
  --color-bg:           #FAFAF8;
  --color-bg-dark:      #1E1C1B;
  --color-text:         #2A2826;
  --color-text-muted:   #6B6563;
  --color-border:       #DDD9D5;
  --color-white:        #FFFFFF;
  --color-primary-dark: #024868;

  /* Schriften */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* Schriftgrößen */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Abstände */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:   1200px;
  --container-pad:   clamp(1rem, 4vw, 2rem);
  --container-narrow: 760px;

  /* Effekte */
  --radius-sm:    3px;
  --radius-md:    6px;
  --radius-lg:    12px;
  --radius-full:  9999px;
  --shadow-card:  0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-nav:   0 2px 16px rgba(0, 0, 0, 0.12);
  --transition:   150ms ease;
}

/* ============================================================
   2. CSS Reset & Basis
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. Typografie
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-secondary);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

/* ============================================================
   4. Layout-Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-20);
}

.section__title {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-12);
}

.section__cta {
  text-align: center;
  margin-top: var(--space-10);
}

.card-grid {
  display: grid;
  gap: var(--space-8);
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* ============================================================
   5. Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   6a. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: #d4900a;
  border-color: #d4900a;
  color: var(--color-secondary);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* ============================================================
   6b. Cards
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
}

.card__title {
  font-size: var(--text-xl);
  margin: 0;
}

.card__title a {
  color: var(--color-secondary);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-primary);
}

.card__teaser,
.card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex-grow: 1;
}

.card__link {
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-primary);
  margin-top: auto;
}

.card__link:hover {
  color: var(--color-accent);
}

.card__role {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.card--team {
  padding: 0;
  overflow: hidden;
}

.card--team .card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card--team .card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card--team .card__body {
  padding: var(--space-6) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

/* ============================================================
   6c. Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-4);
}

.site-header__logo img {
  height: 50px;
  width: auto;
}

.site-header__cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav {
  flex-grow: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-secondary);
  transition: color var(--transition), background-color var(--transition);
}

.nav__link:hover,
.nav__item--active .nav__link {
  color: var(--color-primary);
  background-color: rgba(3, 90, 125, 0.06);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-nav);
  border: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--space-2));
  transition: opacity var(--transition), transform var(--transition);
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.nav__dropdown a:hover {
  background-color: rgba(3, 90, 125, 0.06);
  color: var(--color-primary);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   6d. Hero
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 90, 125, 0.80) 0%, rgba(30, 28, 27, 0.65) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 90, 125, 0.85) 0%, rgba(30, 28, 27, 0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================================
   6e. Über uns / Facts
   ============================================================ */
.home-about__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.home-about__text h2 {
  margin-bottom: var(--space-6);
}

.home-about__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.home-about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.fact-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fact-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}

.fact-card__label {
  font-size: var(--text-sm);
  opacity: 0.85;
}

/* ============================================================
   6f. Karriere Teaser
   ============================================================ */
.karriere-teaser {
  background: var(--color-primary);
  padding-block: var(--space-10);
}

.karriere-teaser__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.karriere-teaser__text {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   6g. Kontakt
   ============================================================ */
.home-kontakt {
  background: var(--color-secondary);
  color: var(--color-white);
}

.home-kontakt__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.home-kontakt .section__title,
.home-kontakt h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.home-kontakt p {
  opacity: 0.85;
  margin-bottom: var(--space-6);
}

.home-kontakt__address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.home-kontakt__links {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-kontakt__links a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-lg);
}

.home-kontakt__links a:hover {
  text-decoration: underline;
}

.home-kontakt__map img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================================
   6h. Header
   ============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-16);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-10);
}

.site-footer__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.site-footer__heading {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.site-footer__col address {
  font-style: normal;
  line-height: 1.8;
  font-size: var(--text-sm);
}

.site-footer__col address a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer__col address a:hover {
  color: var(--color-accent);
}

.site-footer__col ul li {
  margin-bottom: var(--space-2);
}

.site-footer__col ul a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__col ul a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   6i. Breadcrumb
   ============================================================ */
.breadcrumb {
  margin-bottom: var(--space-8);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: var(--space-2);
  opacity: 0.5;
}

.breadcrumb__item a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--color-primary);
}

.breadcrumb__item--current {
  color: var(--color-text);
}

/* ============================================================
   6j. Pagination
   ============================================================ */
.pagination {
  margin-top: var(--space-12);
}

.pagination__list {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition), color var(--transition);
}

.pagination__link:hover,
.pagination__link--active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================================
   6k. Prose (Fließtext-Inhalte aus Markdown)
   ============================================================ */
.prose h2, .prose h3, .prose h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.prose ul, .prose ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-primary);
}

.prose strong {
  font-weight: 600;
}

/* ============================================================
   6l. Rechtsgebiet-Einzelseite
   ============================================================ */
.single__header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}

.single__icon {
  grid-column: 1;
  grid-row: 1;
}

.single__icon svg {
  width: 4.75rem;
  height: 4.75rem;
  display: block;
  color: var(--color-primary);
}

.single__header h1 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}

.single__teaser {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* ============================================================
   6m. Legal
   ============================================================ */
.demo-notice {
  background: #fff8e6;
  border-left: 4px solid var(--color-accent);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.demo-notice strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
}

.demo-notice p {
  margin-bottom: var(--space-2);
}

.demo-notice p:last-child {
  margin-bottom: 0;
}

.legal-content {
  line-height: 1.8;
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content--missing {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ============================================================
   6m. Kontakt-CTA Shortcode
   ============================================================ */
.kontakt-cta {
  background: rgba(3, 90, 125, 0.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
  margin-block: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.kontakt-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--color-secondary);
}

/* ============================================================
   6n. Team-Profil
   ============================================================ */
.team-profile__grid {
  display: grid;
  gap: var(--space-12);
  align-items: start;
  margin-top: var(--space-8);
}

.team-profile__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.team-profile__role {
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.team-profile__areas ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.team-profile__areas li {
  background: rgba(3, 90, 125, 0.1);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-profile__contact a {
  color: var(--color-primary);
  font-size: var(--text-sm);
  word-break: break-all;
}

/* ============================================================
   6o. Blog-Post
   ============================================================ */
.post__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.post__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-style: italic;
}

.post-list__item {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.post-list__item:last-child {
  border-bottom: none;
}

.post-list__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.post-list__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.post-list__title a {
  color: var(--color-secondary);
  text-decoration: none;
}

.post-list__title a:hover {
  color: var(--color-primary);
}

.post-list__excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ============================================================
   6p. Job-Karten
   ============================================================ */
.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.job-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}

.job-card__meta {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.job-card__location,
.job-card__type {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(3, 90, 125, 0.1);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.job-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.job-card__title a {
  color: var(--color-secondary);
  text-decoration: none;
}

.job-card__title a:hover {
  color: var(--color-primary);
}

.job-card__excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ============================================================
   7. Responsive — Mobile First
   ============================================================ */

/* sm — 640px */
@media (min-width: 640px) {
  .home-about__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* md — 768px */
@media (min-width: 768px) {
  .home-about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-kontakt__grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-profile__grid {
    grid-template-columns: clamp(200px, 28%, 320px) 1fr;
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* lg — 1024px */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__list {
    display: flex !important;
  }
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav__list {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-20) var(--space-8) var(--space-8);
    gap: 0;
    overflow-y: auto;
  }

  .nav--open .nav__list {
    display: flex;
  }

  .nav__link {
    color: var(--color-white);
    font-size: var(--text-xl);
    padding: var(--space-4);
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .nav__dropdown a {
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-3) var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
  }

  /* Hamburger → X beim Öffnen */
  .nav--open .nav__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav--open .nav__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hamburger über dem Overlay */
  .nav--open .nav__hamburger {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 201;
  }

  .nav--open .nav__hamburger span {
    background: var(--color-white);
  }
}

/* ============================================================
   8. Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav, .hero__actions, .btn, .breadcrumb {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  a[href^="mailto"]::after,
  a[href^="tel"]::after {
    content: none;
  }
}
