/* ============================================================
   Geerds Unternehmensberatung – style.css – Design Slot 2
   Farben: Waldgrün + Kupfer
   Font: Segoe UI
   ============================================================ */

:root {
  --primary: #2d4a3e;
  --primary-light: #3d6a56;
  --primary-dark: #1d3028;
  --secondary: #c8956c;
  --secondary-light: #d8b08c;
  --accent-bg: #f0f7f4;
  --white: #ffffff;
  --light: #f5f8f6;
  --dark: #1a2e25;
  --text: #2c3e34;
  --text-light: #5a6e62;
  --border: #d4ddd8;
  --shadow: 0 4px 20px rgba(45,74,62,0.08);
  --shadow-hover: 0 12px 35px rgba(45,74,62,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
  --topbar-height: 40px;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --success: #28a745;

  /* Spacing Scale (8px grid) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--light);
  color: var(--text);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--text);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-bar a:hover {
  color: var(--primary);
}

.top-bar .separator {
  color: var(--border);
}

.top-bar svg {
  width: 14px;
  height: 14px;
  fill: var(--secondary);
  flex-shrink: 0;
}

.top-bar-right span {
  color: var(--text-light);
}

/* ===================== HEADER ===================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
  background: var(--white);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

/* Transparent header on home page */
body.home-page .header {
  background: transparent;
  box-shadow: none;
}

body.home-page .hero {
  margin-top: calc(-1 * var(--header-height));
}

body.home-page .hero .hero-left {
  padding-top: calc(var(--header-height) + 80px);
}

body.home-page .header:not(.scrolled) .logo-text .name {
  color: var(--white);
}

body.home-page .header:not(.scrolled) .logo-text .tagline {
  color: rgba(255,255,255,0.7);
}

body.home-page .header:not(.scrolled) .main-nav a:not(.nav-cta) {
  color: rgba(255,255,255,0.9);
}

body.home-page .header:not(.scrolled) .main-nav a:not(.nav-cta):hover,
body.home-page .header:not(.scrolled) .main-nav a:not(.nav-cta).active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

body.home-page .header:not(.scrolled) .logo-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

body.home-page .header:not(.scrolled) .hamburger span {
  background: var(--white);
}

body.home-page .header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

body.home-page .header.scrolled .logo-text .name {
  color: var(--primary);
}

body.home-page .header.scrolled .logo-text .tagline {
  color: var(--text-light);
}

body.home-page .header.scrolled .main-nav a:not(.nav-cta) {
  color: var(--text);
}

body.home-page .header.scrolled .logo-icon {
  background: var(--primary);
  color: var(--secondary);
}

body.home-page .header.scrolled .hamburger span {
  background: var(--primary);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s ease;
}

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--accent-bg);
}

.nav-cta {
  background: var(--secondary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover {
  background: var(--secondary-light) !important;
}

.nav-cta.active {
  background: var(--primary) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== HERO – SPLIT SCREEN ===================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  position: relative;
}

.hero-left {
  background: var(--primary);
  color: var(--white);
  padding: 80px 60px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-left h1 span {
  color: var(--secondary);
}

.hero-left > p {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-right {
  background-color: var(--accent-bg);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(45,74,62,0.04) 30px,
      rgba(45,74,62,0.04) 60px
    );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right::before {
  content: "GU";
  font-size: 10rem;
  font-weight: 900;
  color: rgba(45,74,62,0.06);
  letter-spacing: 10px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badges {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero-badge svg {
  width: 32px;
  height: 32px;
  fill: var(--secondary);
  margin: 0 auto 8px;
  display: block;
}

.hero-badge .badge-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-badge .badge-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,149,108,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-accent {
  background: var(--accent-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ===================== OUTLINE CARDS ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  background: var(--accent-bg);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--secondary);
  transition: fill 0.3s ease;
}

.card:hover .card-icon svg {
  fill: var(--white);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.card .card-link:hover {
  gap: 10px;
  color: var(--primary);
}

/* ===================== SERVICES OVERVIEW (INDEX) ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--accent-bg);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-card h3 svg {
  width: 28px;
  height: 28px;
  fill: var(--secondary);
  flex-shrink: 0;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ===================== CTA BANNER ===================== */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,149,108,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.cta-section p {
  opacity: 0.9;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 35px;
}

.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--secondary);
}

.cta-contact-item a,
.cta-contact-item span {
  color: rgba(255,255,255,0.9);
}

.cta-contact-item a:hover {
  color: var(--secondary);
}

/* ===================== TESTIMONIALS – CENTERED STACKED ===================== */
.testimonials-stack {
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-card {
  text-align: center;
  padding: 40px 40px 35px;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:last-child {
  margin-bottom: 0;
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.testimonial-quote-mark {
  font-size: 4.5rem;
  color: var(--secondary);
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 10px;
  display: block;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 25px;
}

.testimonial-stars {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.testimonial-author-role {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===================== FAQ – CHEVRON ROTATION ===================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-left-color: var(--secondary);
}

.faq-item.active {
  border-color: var(--primary);
  border-left-color: var(--secondary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: inherit;
  transition: color 0.3s ease;
  gap: 15px;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 25px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ===================== FOOTER – 4 COLUMNS DARK ===================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-content a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--secondary);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--secondary-light);
}

.cookie-btn-reject {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn-reject:hover {
  background: rgba(255,255,255,0.2);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(200,149,108,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

/* ===================== FADE UP ANIMATION ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== PAGE HERO (SUB PAGES) ===================== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 40px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--white);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

/* ===================== LEGAL PAGES ===================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 20px 25px;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-content strong {
  color: var(--primary);
}

.legal-content a {
  color: var(--secondary);
  text-decoration: underline;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.legal-content table th,
.legal-content table td {
  padding: 10px 15px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.legal-content table th {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--primary);
}

/* ===================== SERVICE DETAIL (LEISTUNGEN PAGE) ===================== */
.service-detail {
  padding: 70px 0;
}

.service-detail:nth-child(even) {
  background: var(--accent-bg);
}

.service-row {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 40px;
  align-items: center;
}

.service-row h2 {
  margin-bottom: 15px;
  font-size: 1.75rem;
}

.service-row > div:first-child > p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-icon-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-detail:nth-child(even) .service-circle {
  background: var(--white);
}

.service-circle:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

.service-circle svg {
  width: 64px;
  height: 64px;
  fill: var(--secondary);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 15px;
}

.service-detail-list h4 {
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-detail-list ul {
  list-style: none;
}

.service-detail-list ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-light);
}

.service-detail-list ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ===================== DISCLOSURE BOX ===================== */
.disclosure-box {
  background: var(--accent-bg);
  border: 2px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 20px 25px;
  margin-top: 30px;
}

.disclosure-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.disclosure-box p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===================== CONTACT FORM – CENTERED ===================== */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto 50px;
}

.contact-form-wrapper h2 {
  text-align: center;
  margin-bottom: 10px;
}

.contact-form-wrapper > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,74,62,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-form .form-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--primary);
}

.contact-form .form-check label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form .error-msg {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.contact-form .form-group.error input,
.contact-form .form-group.error textarea,
.contact-form .form-group.error select {
  border-color: #dc3545;
}

.contact-form .form-group.error .error-msg {
  display: block;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary);
  background: var(--accent-bg);
  box-shadow: var(--shadow);
}

.info-card svg {
  width: 36px;
  height: 36px;
  fill: var(--secondary);
  margin: 0 auto 12px;
  display: block;
}

.info-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.info-card p,
.info-card a,
.info-card span {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-card a:hover {
  color: var(--primary);
}

/* ===================== PROFILE CARD – CENTERED ===================== */
.profile-card {
  max-width: 850px;
  margin: 0 auto 60px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.profile-avatar {
  width: 150px;
  height: 180px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.profile-info h2 {
  margin-bottom: 4px;
}

.profile-info .profile-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.profile-info .profile-qualifications {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile-info .profile-bio {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-stat {
  text-align: center;
  padding: 12px 20px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  min-width: 100px;
}

.profile-stat .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.profile-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Network tags */
.network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.network-tags h4 {
  width: 100%;
  margin-bottom: 0;
}

.network-tag {
  background: var(--accent-bg);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* ===================== HORIZONTAL TIMELINE ===================== */
.timeline-horizontal {
  display: flex;
  position: relative;
  padding: 40px 0 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--border);
}

.timeline-station {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 15px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-station .timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-station h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.timeline-station p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================== NAV OVERLAY ===================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .hero-left {
    padding: 80px 40px 100px;
  }

  body.home-page .hero .hero-left {
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-badges {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    bottom: -50px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-icon-area {
    order: -1;
  }

  .service-circle {
    width: 120px;
    height: 120px;
  }

  .service-circle svg {
    width: 48px;
    height: 48px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    margin: 0 auto;
    width: 120px;
    height: 140px;
    font-size: 2.5rem;
  }

  .profile-stats {
    justify-content: center;
  }

  .timeline-horizontal {
    flex-direction: column;
    padding-left: 40px;
  }

  .timeline-horizontal::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline-station {
    text-align: left;
    padding: 0 0 30px 30px;
  }

  .timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    margin: 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero-left h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .top-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text) !important;
  }

  .hero-left {
    padding: 60px 20px 90px;
  }

  body.home-page .hero .hero-left {
    padding-top: calc(var(--header-height) + 40px);
  }

  .hero-left h1 {
    font-size: 1.8rem;
  }

  .hero-left > p {
    font-size: 1rem;
  }

  .hero-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
    bottom: -45px;
  }

  .hero-badge {
    padding: 15px 12px;
  }

  .section {
    padding: 50px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-contact-info {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .network-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-left h1 {
    font-size: 1.5rem;
  }

  .hero-badges {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 25px 20px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .profile-avatar {
    width: 100px;
    height: 120px;
    font-size: 2rem;
  }
}

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--white);
}

/* ===================== FOCUS VISIBLE ===================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================== PROSE MAX-WIDTH ===================== */
.legal-content p,
.section-title p,
.hero-left > p,
.service-row > div:first-child > p,
.profile-info .profile-bio,
.testimonial-text,
.faq-answer-inner {
  max-width: 70ch;
}

/* ===================== FORM SUCCESS STATE ===================== */
.btn.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

/* ===================== PRINT ===================== */
@media print {
  .top-bar,
  .header,
  .cookie-banner,
  .back-to-top,
  .hamburger,
  .nav-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    display: block;
    background: #fff !important;
    color: #000 !important;
    padding: 20px 0;
  }

  .hero-left {
    background: #fff !important;
    color: #000 !important;
  }

  .hero-left h1 { color: #000 !important; }
  .hero-right { display: none !important; }
  .section { padding: 20px 0; }
  a { color: #000; text-decoration: underline; }
}

/* ===================== 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;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero-badge:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-outline-dark:hover {
    transform: none;
  }
}
