/* =============================================
   BrandPush – Stylesheet
   Farben: Navy #1a2744, Orange #c87941, Weiß #ffffff
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2744;
  --navy-light: #243460;
  --navy-dark: #111b30;
  --orange: #c87941;
  --orange-light: #d9935e;
  --orange-dark: #a85f28;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(200, 121, 65, 0.10);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-tag-light {
  color: var(--orange-light);
  background: rgba(200, 121, 65, 0.20);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 121, 65, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== NAVIGATION ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

#header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo-light { display: block; }
.logo-dark  { display: none; }

#header.scrolled .logo-light { display: none; }
#header.scrolled .logo-dark  { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--white);
}

#header.scrolled .nav-links a {
  color: var(--gray-700);
}

#header.scrolled .nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

#header.scrolled .nav-toggle span {
  background: var(--navy);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 27, 48, 0.88) 0%,
    rgba(26, 39, 68, 0.75) 50%,
    rgba(26, 39, 68, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-text {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-light);
  border: 1px solid rgba(200, 121, 65, 0.5);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.highlight {
  color: var(--orange);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.hero-scroll:hover { color: var(--orange); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== LEISTUNGEN ===== */
.leistungen {
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26,39,68,0.7) 100%);
}

.service-icon {
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(200, 121, 65, 0.4);
}

.service-body {
  padding: 28px;
}

.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-list {
  margin-bottom: 20px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.85rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--transition);
}

.service-link:hover {
  color: var(--orange-dark);
}

/* ===== ÜBER UNS ===== */
.ueber-uns {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-col {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-badge-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  opacity: 0.9;
}

.about-text-col .section-title {
  text-align: left;
  margin-bottom: 12px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 16px;
}

.about-text-col p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(200, 121, 65, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-top: 2px;
}

.value-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0;
}

/* ===== TEAM ===== */
.team-section {
  background: var(--gray-50);
}

.team-img-full {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
}

.team-img-full img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.team-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.85), transparent);
  color: var(--white);
  padding: 32px 28px 20px;
  font-size: 1rem;
  font-style: italic;
  font-family: var(--font-heading);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.team-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ===== REFERENZEN ===== */
.referenzen {
  background: var(--white);
}

.ref-hero-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
}

.ref-hero-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.ref-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.75) 0%, rgba(200,121,65,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-hero-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--white);
  text-align: center;
  padding: 0 40px;
  font-style: italic;
  max-width: 700px;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.ref-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.ref-logo-placeholder {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ref-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.ref-category {
  display: block;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.ref-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ref-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(26,39,68,0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

/* Testimonials */
.testimonials {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
}

.testimonials-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-stars {
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ===== KONTAKT ===== */
.kontakt {
  position: relative;
  overflow: hidden;
}

.kontakt-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kontakt-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kontakt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,27,48,0.95) 0%, rgba(26,39,68,0.90) 100%);
}

.kontakt-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.kontakt-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.kontakt-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.kontakt-info-item svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* Contact Form */
.kontakt-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200, 121, 65, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-check label {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 0;
}

.form-check label a {
  color: var(--orange);
  text-decoration: underline;
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 12px;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.60);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.70);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ===== SUBPAGES (Impressum, Datenschutz) ===== */
.subpage-header {
  background: var(--navy);
  padding: 140px 0 60px;
  text-align: center;
}

.subpage-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}

.subpage-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

.subpage-content {
  padding: 72px 0;
}

.subpage-content .container {
  max-width: 800px;
}

.subpage-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 40px 0 16px;
}

.subpage-content h2:first-child {
  margin-top: 0;
}

.subpage-content p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
}

.subpage-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.subpage-content ul li {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 6px;
}

.subpage-content a {
  color: var(--orange);
  text-decoration: underline;
}

.subpage-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 40px;
  text-decoration: none;
  transition: color var(--transition);
}

.subpage-content .back-link:hover {
  color: var(--orange);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollTop:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .about-grid {
    gap: 48px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a { color: rgba(255,255,255,0.85); font-size: 1rem; }
  #header.scrolled .nav-links a { color: rgba(255,255,255,0.85); }

  .services-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  .about-img { height: 360px; }

  .about-badge-box { right: 16px; bottom: -16px; }

  .ref-grid { grid-template-columns: 1fr; }
  .ref-list-grid { grid-template-columns: 1fr; gap: 12px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .testimonials { padding: 36px 24px; }

  .kontakt-container { grid-template-columns: 1fr; gap: 48px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats { gap: 20px; }

  .form-row { grid-template-columns: 1fr; }

  .kontakt-form-wrap { padding: 28px 20px; }

  .about-values { gap: 16px; }

  .ref-hero-img { height: 220px; }

  .logo-img { height: 48px; max-width: 200px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .logo-img { height: 40px; max-width: 170px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .kontakt-form-wrap { padding: 20px 16px; }
  .ref-list-card { padding: 14px 16px; }
  .footer-legal-links { margin-top: 16px; }
}

/* ===== REFERENZ-LISTE (neue kompakte Darstellung) ===== */
.ref-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.ref-list-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ref-list-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ref-list-logo {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ref-list-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.ref-list-info .ref-category {
  margin-bottom: 0;
}

/* ===== FOOTER LEGAL LINKS ===== */
.footer-legal-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.50);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--orange);
}

/* ===== FOOTER NAV TEXT (für Kontaktdaten ohne Link) ===== */
.footer-nav ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.5;
}

/* ===== SCROLL-TO-TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===== MOBILE: HERO STATS KOMPAKTER ===== */
@media (max-width: 768px) {
  .ref-list-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .ref-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ===== KUNDEN-LOGO-RASTER (Referenzen) ===== */
.clients-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.client-logo-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 120px;
  overflow: visible;
  opacity: 1;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.28s ease;
}

/* Hover: scharfes Scale-Up (max. 20% – passend für 350px Originalgröße) */
.client-logo-item:hover,
.client-logo-item:focus-visible {
  border-color: var(--orange);
  background: #fff8f3;
  box-shadow:
    0 6px 24px rgba(200, 121, 65, 0.25),
    0 2px 6px rgba(0,0,0,0.10);
  transform: scale(1.12);
  z-index: 10;
  outline: none;
}

/* Active (Klick): kurzes Eindrücken */
.client-logo-item:active {
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(200, 121, 65, 0.18);
  transition-duration: 0.10s;
}

.client-logo-item img {
  width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  display: block;
  /* Standardmäßig leicht entsättigt und gedimmt */
  filter: grayscale(40%) opacity(0.75);
  transition:
    filter 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover: voll farbig, natürliche Größe (kein zusätzlicher Scale am Bild) */
.client-logo-item:hover img,
.client-logo-item:focus-visible img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.0);
}

.client-logo-item:active img {
  transform: scale(1.0);
}

/* Tablet: weiterhin 5 Spalten bis 1024px */
@media (max-width: 1024px) {
  .clients-logo-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 10px !important;
  }
}

/* Großes Handy / kleines Tablet: 3 Spalten */
@media (max-width: 640px) {
  .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 24px;
  }
  .client-logo-item {
    height: 90px;
    padding: 8px 6px;
  }
  .client-logo-item img {
    max-height: 62px;
  }
}

/* Kleines Handy: 3 Spalten (sehr klein) */
@media (max-width: 380px) {
  .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .client-logo-item {
    height: 76px;
    padding: 6px 4px;
  }
  .client-logo-item img {
    max-height: 54px;
  }
}

/* ===== COOKIE-BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.90);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--orange-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.cookie-btn-accept:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.cookie-btn-essential {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}

.cookie-btn-essential:hover {
  border-color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.08);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-color: transparent;
  font-size: 0.82rem;
  padding: 10px 12px;
  text-decoration: underline;
}

.cookie-btn-settings:hover {
  color: var(--orange-light);
}

/* Cookie-Einstellungen Modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal.open {
  display: flex;
}

.cookie-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.cookie-modal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.cookie-modal-box > p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-category {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-category-header strong {
  font-size: 0.92rem;
  color: var(--navy);
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--orange);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-category p {
  font-size: 0.80rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cookie-modal-box {
    padding: 24px 20px;
  }
}
