﻿/* ===================================
   SIMREAL IMMOBILIENVERWALTUNG THEME
   =================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Design System */
:root {
  /* Primary Colors - Conservative Business Colors */
  --primary: #2c3e50;
  --primary-light: #34495e;
  --primary-lighter: #7f8c8d;

  /* Accent Colors - Traditional Business Accent */
  --accent: #8b4513;
  --accent-light: #a0522d;

  /* Neutral Colors */
  --text: #2c3e50;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-strong: #ffffff;
  --muted: #3d4142;
  --muted-light: #95a5a6;
  --border: #bdc3c7;
  --border-light: #ecf0f1;

  /* Background Colors */
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --bg-dark: #2c3e50;
  --bg-overlay: rgba(255, 255, 255, 0.95);

  /* Spacing & Sizing - More Conservative */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --max-width: 1200px;
  --container-padding: 1.5rem;

  /* Shadows - More Subtle */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-small: 0 1px 4px rgba(0, 0, 0, 0.05);

  /* Transitions - More Subtle */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;

  /* Typography - More Conservative */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.85rem;
  --font-size-base: 0.95rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.1rem;
  --font-size-2xl: 1.3rem;
  --font-size-3xl: 1.5rem;
  --font-size-4xl: 1.7rem;
  --font-size-5xl: 1.9rem;

  /* Line Heights */
  --line-height-tight: 1.3;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.5;
  --line-height-loose: 1.6;
  --line-height-extra-loose: 1.7;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height-loose);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
}

/* ===================================
   LAYOUT COMPONENTS
   =================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section:nth-child(even) {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.section:nth-child(odd) {
  background: var(--bg);
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ===================================
   SECTION COMPONENTS
   =================================== */

/* Section Kicker - Used across multiple sections */
.section-kicker {
  display: inline-block;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: var(--line-height-tight);
}

.section-2ndtitle {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: var(--line-height-normal);
}

.section-subtitle {
  color: var(--muted);
  max-width: 50rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-xl);
  line-height: var(--line-height-loose);
}

/* ===================================
   HEADER COMPONENTS
   =================================== */

header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-small);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
  padding: 0 1.5rem;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 0px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--accent);
}

.nav-link.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--accent);
}

.nav-link::after {
  display: none;
}

/* ===================================
   HERO COMPONENTS
   =================================== */

.slider {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
  background: #d0d4d9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide1 {
  z-index: 3;
}

.slide2 {
  z-index: 2;
}

.slide3 {
  z-index: 1;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  43% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  backdrop-filter: blur(4px);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 90%;
  max-width: 460px;
  text-align: center;
  z-index: 100;
  border: 1px solid var(--border);
}

.hero-overlay h1 {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: var(--line-height-tight);
}

.hero-overlay p {
  color: var(--muted);
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-relaxed);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-family);
}

/* Button Variants */
.btn-primary {
  background: var(--primary);
  color: var(--text-strong);
  border-color: var(--primary);
}

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

.btn-light {
  background: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border);
}

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

.btn-primary-large {
  background: var(--accent);
  color: var(--text-strong);
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-medium);
}

.btn-primary-large:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-soft);
}

.btn-secondary-large {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border: 2px solid var(--bg-alt);
}

.btn-secondary-large:hover {
  background: var(--bg-alt);
  color: var(--primary-light);
  border: 2px solid var(--accent-light);
}

.btn-thirdary-large {
  background: transparent;
  color: var(--primary);
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border: 2px solid var(--primary);
}

.btn-thirdary-large:hover {
  background: var(--primary);
  color: var(--text-strong);
  border: 2px solid var(--primary);
}


/* ===================================
   SECTION 1: INTRO - Modern Gradient
   =================================== */

.section-intro {
  background: var(--bg);
  padding: 4rem 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===================================
   SECTION 3: SHOWCASE - Image/Text
   =================================== */

.section-showcase {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-reverse {
  direction: rtl;
}

.showcase-reverse .showcase-text {
  direction: ltr;
}

.showcase-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  border: 1px solid var(--border);
}

.showcase-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-image-home {
    position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  border: 1px solid var(--border);
}

.showcase-image-home img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-image-service {
    position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  border: 1px solid var(--border);
}

.showcase-image-service img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}



.showcase-item:hover .showcase-image img {
  transform: scale(1.02);
}

.image-overlay {
  display: none;
}

.showcase-text {
  padding: 2rem;
}

.showcase-number {
  display: inline-block;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(31, 42, 68, 0.06);
  line-height: 1;
  margin-bottom: 3rem;
}

.showcase-text h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: var(--line-height-tight);
}

.showcase-text p {
  font-size: var(--font-size-lg);
  color: var(--muted);
  line-height: var(--line-height-extra-loose);
  margin-bottom: 1.5rem;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 0.7rem;
}

.showcase-list li {
  font-size: var(--font-size-base);
  color: var(--text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.showcase-list li:last-child {
  border-bottom: none;
}

.showcase-list li:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* ===================================
   SECTION 5: CTA - Call to Action
   =================================== */

.section-cta {
  padding: 4rem 0;
  background: var(--primary);
  position: relative;
  border-top: 3px solid var(--accent);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-strong);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: var(--font-size-xl);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: var(--line-height-relaxed);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  border-top: 3px solid var(--accent);
  background: var(--bg-dark);
  color: var(--muted-light);
  padding: 2rem 0;
  font-size: var(--font-size-sm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--border-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.footer-brand img.logo {
  height: 20px;
  margin-right: 20px;
}

/* ===================================
   SECTION: PROPERTIES (Immobilien)
   =================================== */

.section-properties {
  padding: 4rem 0;
  background: var(--bg-alt);
  position: relative;
}

.properties-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent);
}

.property-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

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

.property-card:hover .property-image img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.property-badge-available {
  background: #2d5016;
  color: white;
}

.property-badge-secondary {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.property-badge-rent {
  background: var(--primary);
  color: white;
}

.property-badge-sale {
  background: var(--accent);
  color: white;
}

.property-content {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.7rem 0;
  line-height: 1.3;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-family);
}

.property-details {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-icon {
  font-size: 1.1rem;
}

.properties-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===================================
   SERVICES CYCLE SECTION
   =================================== */

.section-services-cycle {
  padding: 4rem 0;
  background: var(--bg);
  position: relative;
}

.cycle-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cycle-header .section-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: var(--line-height-tight);
}

.services-cycle-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Services List */
.center-services {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: var(--bg-alt);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
}

/* hide center-services from 550px screen width and below */
@media (max-width: 550px) {
  .center-services {
    display: none;
  }
}



.center-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.center-services li {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.6rem 0;
  line-height: 1.4;
}

/* Circle Container */
.cycle-circle {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
}

/* Cycle Nodes - Positioned in Circle */
.cycle-node {
  position: absolute;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.node-content {
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid var(--accent);
}

.node-content:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-soft);
  background: var(--primary-light);
}

.node-icon {
  width: 48px;
  height: 48px;
  color: white;
  margin-bottom: 0.8rem;
}

.cycle-node h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  color: white;
}

/* Position Nodes - Top, Right, Bottom, Left */
.node-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.node-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.node-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.node-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Animated Arrows */
.arrow-svg {
  position: absolute;
  width: 60px;
  height: 60px;
  animation: arrowMove 6s ease-in-out infinite;
}

.arrow-1 {
  top: 15%;
  right: 20%;
  animation-delay: 0s;
  transform: rotate(45deg);
}

.arrow-2 {
  top: 50%;
  right: 5%;
  animation-delay: 1.5s;
  transform: rotate(135deg);
}

.arrow-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 3s;
  transform: rotate(225deg);
}

.arrow-4 {
  top: 50%;
  left: 5%;
  animation-delay: 4.5s;
  transform: rotate(315deg);
}

@keyframes arrowMove {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.9) rotate(var(--rotation, 0deg));
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1) rotate(var(--rotation, 0deg));
  }
}

.arrow-1 {
  --rotation: 45deg;
}

.arrow-2 {
  --rotation: 135deg;
}

.arrow-3 {
  --rotation: 225deg;
}

.arrow-4 {
  --rotation: 315deg;
}

/* Dashed Circle Animation */
.cycle-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border: 2px dashed rgba(31, 42, 68, 0.2);
  border-radius: 50%;
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===================================
   SECTION: TEAM
   =================================== */

.section-team {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.team-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 4fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid var(--border);
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent);
}

.team-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 0;
}

.team-card:hover .team-image img {
  transform: scale(1.02);
}

.team-content {
  padding: 2rem 1.8rem;
}

.team-name {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: var(--line-height-tight);
}

.team-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-normal);
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-phone,
.team-email {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  text-decoration: none;
  flex: 1;
}

.team-phone:hover,
.team-email:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(2px);
}

.team-phone svg,
.team-email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

/* ===================================
   SECTION: PARTNER
   =================================== */

.section-partner {
  padding: 4rem 0;
  background: var(--bg);
}

.partner-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent);
}

.partner-logo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  position: relative;
}

.partner-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.partner-logo-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo img[alt="Immotop"] {
  filter: invert(1);
}

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

.partner-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--muted-light);
  background: var(--primary);
  border-radius: var(--radius-sm);
}

.partner-logo-placeholder svg {
  width: 40px;
  height: 40px;
}

.partner-content {
  padding: 1rem 1.2rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.partner-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: var(--line-height-tight);
}

.partner-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.partner-name-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.partner-description {
  font-size: var(--font-size-xs);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.partner-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(139, 69, 19, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 69, 19, 0.2);
  transition: all var(--transition-fast);
}

.service-tag:hover {
  background: var(--accent);
  color: white;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: auto;
  align-self: flex-start;
}

.partner-link:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
  gap: 0.75rem;
}

/* Keep Leistungsliste static on the Leistungen page */
.leistungen-page .showcase-item:hover .showcase-image img {
  transform: none;
}

.leistungen-page .showcase-list li {
  transition: none;
}

.leistungen-page .showcase-list li:hover {
  color: var(--text);
  padding-left: 0;
}

/* Partner grid responsive */
@media (max-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .partner-logo {
    height: 80px;
    padding: 0.75rem;
  }
  .partner-logo img {
    max-height: 45px;
  }
  .partner-content {
    padding: 0.75rem 0.8rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 1rem;
  }

  .main-nav {
    gap: 0.3rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo links */
  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  /* Menü-Icon rechts */
  .mobile-menu-toggle {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 1001;
  }

  .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .mobile-menu-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
    display: block;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
    border-bottom-color: transparent;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    width: 100%;
    right: -100%;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-link {
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    text-align: center;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:hover,
  .nav-link.active {
    border-left: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-link.active {
    background: var(--accent);
    color: #fff;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
    bottom: 1rem;
    padding: 1.5rem;
    width: 95%;
  }

  .hero-overlay h1 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }

  .hero-overlay p {
    font-size: var(--font-size-lg);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: var(--font-size-4xl);
  }

  .section-2ndtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
  }

  .section:nth-child(even) {
    padding: 2.5rem 1.5rem;
    margin: 1rem 0;
  }

  .section:nth-child(odd) {
    padding: 3rem 0;
  }

  nav {
    gap: 1.5rem;
  }

  nav a {
    font-size: var(--font-size-sm);
  }

  /* Mobile Sections */
  .section-intro {
    padding: 4rem 0;
  }

  .intro-content {
    padding: 0 1rem;
  }

  .section-intro::before {
    width: 400px;
    height: 400px;
    right: -20%;
  }

  .showcase-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-reverse {
    direction: ltr;
  }

  .showcase-image img {
    height: 300px;
  }

  .showcase-number {
    font-size: 3.5rem;
  }

  .showcase-text {
    padding: 0rem;
  }

  .showcase-text h3 {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: var(--font-size-lg);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary-large,
  .btn-secondary-large {
    width: 100%;
    padding: 1rem 2rem;
  }

  .intro-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .intro-buttons .btn-primary-large,
  .intro-buttons .btn-secondary-large {
    width: 100%;
  }

  .section-properties {
    padding: 4rem 0;
  }

  .properties-header {
    margin-bottom: 2.5rem;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .property-image {
    height: 220px;
  }

  .property-title {
    font-size: 1.2rem;
  }

  .property-price {
    font-size: 1.3rem;
  }

  .section-services-cycle {
    display: none;
    padding: 4rem 0;
  }

  .cycle-header .section-title {
    font-size: 1.5rem;
  }

  .cycle-circle {
    width: 400px;
    height: 400px;
  }

  .cycle-circle::before {
    width: 320px;
    height: 320px;
  }

  .cycle-node {
    width: 120px;
    height: 120px;
  }

  .node-content {
    padding: 1rem;
  }

  .node-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
  }

  .cycle-node h4 {
    font-size: 0.75rem;
  }

  .center-services {
    padding: 1.5rem 2rem;
  }

  .center-services li {
    font-size: 0.8rem;
    margin: 0.4rem 0;
  }

  .arrow-svg {
    width: 40px;
    height: 40px;
  }

  .section-team {
    padding: 4rem 0;
  }

  .team-header {
    margin-bottom: 3rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
  }



  .team-content {
    padding: 1.5rem 1.5rem;
  }

  .team-name {
    font-size: var(--font-size-xl);
  }

  .team-role {
    font-size: var(--font-size-sm);
  }

  /* Partner Section Responsive */
  .section-partner {
    padding: 3rem 0;
  }

  .partner-header {
    margin-bottom: 2.5rem;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partner-logo {
    height: 120px;
    padding: 1.5rem;
  }

  .partner-content {
    padding: 1.5rem;
  }

  .partner-name {
    font-size: var(--font-size-xl);
  }

  .partner-description {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: var(--font-size-2xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .header-inner {
    padding: 1rem 0;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav a {
    font-size: var(--font-size-xs);
  }

  /* Extra Small Mobile */
  .section-kicker {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .showcase-number {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .section-cta::before,
  .section-cta::after {
    width: 300px;
    height: 300px;
  }

  .property-details {
    gap: 1rem;
  }

  .property-detail {
    font-size: 0.85rem;
  }

  .property-badge,
  .property-badge-secondary {
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
  }

  .cycle-circle {
    width: 320px;
    height: 320px;
  }

  .cycle-circle::before {
    width: 260px;
    height: 260px;
  }

  .cycle-node {
    width: 100px;
    height: 100px;
  }

  .node-icon {
    width: 28px;
    height: 28px;
  }

  .cycle-node h4 {
    font-size: 0.65rem;
  }

  .center-services {
    padding: 1rem 1.5rem;
    max-width: 160px;
  }

  .center-services li {
    font-size: 0.7rem;
  }

  .team-card {
    margin: 0 1rem;
  }

  .team-image {
    height: 250px;
  }

  .team-phone,
  .team-email {
    font-size: var(--font-size-sm);
    padding: 0.7rem 0.9rem;
  }

  .team-phone svg,
  .team-email svg {
    width: 16px;
    height: 16px;
  }

  /* Partner Section Extra Small Mobile */
  .partner-logo {
    height: 100px;
    padding: 1rem;
  }

  .partner-content {
    padding: 1.2rem;
  }

  .partner-name {
    font-size: var(--font-size-lg);
  }

  .partner-description {
    font-size: var(--font-size-sm);
  }

  .service-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  

}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Properties Responsive */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

/* Team Section Responsive */
@media (max-width: 1210px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

   .showcase-item {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .showcase-text {
    padding: 0.5rem;
  }
}

@media (max-width: 770px) {
  .team-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

 
}

.services-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.services-header .section-title {
  font-size: var(--font-size-4xl);
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-tight);
}

.services-header .section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--muted);
  line-height: var(--line-height-loose);
  margin-bottom: 0;
}

.intro-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.intro-text p {
  font-size: var(--font-size-lg);
  color: var(--text);
  line-height: var(--line-height-loose);
}

.intro-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Trust Block */
.trust-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-highlight {
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--primary);
  line-height: 1.3;
}

.trust-desc {
  font-size: var(--font-size-sm);
  color: var(--muted-light);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .trust-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Region Block (SEO) */
.region-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.region-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.region-icon svg {
  width: 100%;
  height: 100%;
}

.region-text {
  font-size: var(--font-size-sm);
  color: var(--muted);
  line-height: 1.5;
}

.region-label {
  font-weight: 600;
  color: var(--primary);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.livit-service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-small);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.livit-service-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--border);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0;
}

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

/* Red accent bar on top of image */
.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  z-index: 1;
}

.card-content {
  padding: 1.8rem 1.5rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: var(--line-height-tight);
}

.card-text {
  font-size: var(--font-size-base);
  color: var(--muted);
  line-height: var(--line-height-loose);
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-top: auto;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
  gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {


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

  .services-header .section-title {
    font-size: var(--font-size-3xl);
  }

  .card-image {
    height: 180px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   STICKY SUB-HEADER FOR LEISTUNGEN
   =================================== */

.sticky-subheader {
  position: sticky;
  top: 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  box-shadow: var(--shadow-small);
}

.subheader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 50px;
}

/* Desktop navigation - visible by default */
.subheader-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.subheader-nav-link {
  color: var(--text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-align: center;
}

.subheader-nav-link:hover {
  color: var(--accent);
  background: rgba(139, 69, 19, 0.05);
}

.subheader-nav-link.active {
  color: var(--accent);
  background: rgba(139, 69, 19, 0.1);
}

.subheader-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.subheader-nav-link:hover::after,
.subheader-nav-link.active::after {
  width: 70%;
}

/* Mobile elements - hidden by default */
.subheader-current {
  display: none;
}

.subheader-menu-toggle {
  display: none;
}

/* ===================================
   RESPONSIVE SUBHEADER - TABLET & MOBILE
   =================================== */

@media (max-width: 1100px) {
  .sticky-subheader {
    background: var(--bg-alt);
  }

  .subheader-wrapper {
    justify-content: space-between;
    padding: 0;
    min-height: 52px;
  }

  /* Mobile toggle button - styled as clear clickable element */
  .subheader-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 8px;
    margin-right: 14px;
    transition: all var(--transition-fast);
  }

  .subheader-menu-toggle:hover {
    background: var(--primary-light);
  }

  .subheader-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
    display: block;
  }

  .subheader-menu-toggle.active {
    background: var(--accent);
  }

  .subheader-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .subheader-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .subheader-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Current section indicator */
  .subheader-current {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    padding: 0.75rem 1rem;
    text-align: center;
    border-left: 3px solid var(--accent);
    background: rgba(139, 69, 19, 0.05);
    margin: 8px 0 8px 8px;
    border-radius: var(--radius-sm);
  }

  /* Dropdown navigation */
  .subheader-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
  }

  .subheader-nav.active {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .subheader-nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-size: var(--font-size-base);
    position: relative;
  }

  .subheader-nav-link:last-child {
    border-bottom: none;
  }

  .subheader-nav-link::after {
    display: none;
  }

  .subheader-nav-link:hover {
    background: rgba(139, 69, 19, 0.08);
  }

  .subheader-nav-link.active {
    background: rgba(139, 69, 19, 0.12);
    border-left: 3px solid var(--accent);
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .subheader-current {
    font-size: var(--font-size-xs);
    padding: 0.6rem 0.75rem;
  }

  .subheader-menu-toggle {
    padding: 10px 14px;
  }

  .subheader-nav-link {
    padding: 0.9rem 1.25rem;
    font-size: var(--font-size-sm);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .subheader-wrapper {
    min-height: 48px;
  }

  .subheader-current {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    margin: 6px 0 6px 6px;
  }

  .subheader-menu-toggle {
    padding: 8px 12px;
    margin: 6px;
  }

  .subheader-menu-toggle span {
    width: 18px;
  }

  .subheader-nav-link {
    padding: 0.85rem 1rem;
    font-size: var(--font-size-sm);
  }
}

/* ===================================
   SECTION: LEGAL - IMPRESSUM & DATENSCHUTZ
   =================================== */

.section-legal {
  padding: 4rem 0;
  background: var(--bg);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-small);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.legal-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--accent);
}

.legal-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-tight);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.8rem;
}

.legal-card h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
  line-height: var(--line-height-normal);
}

.legal-card p {
  font-size: var(--font-size-base);
  color: var(--text);
  line-height: var(--line-height-loose);
  margin-bottom: 1.2rem;
}

.legal-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.legal-card a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

.legal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.legal-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.legal-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.legal-item h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.8rem 0;
  line-height: var(--line-height-normal);
}

.legal-item p {
  font-size: var(--font-size-base);
  color: var(--text);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* Responsive Design for Legal Section */
@media (max-width: 768px) {
  .section-legal {
    padding: 3rem 0;
  }
  
  .legal-content {
    gap: 2rem;
  }
  
  .legal-card {
    padding: 2rem 1.5rem;
  }
  
  .legal-card h3 {
    font-size: var(--font-size-xl);
  }
  
  .legal-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .legal-item {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .legal-card {
    padding: 1.5rem 1.2rem;
  }
  
  .legal-card h3 {
    font-size: var(--font-size-lg);
  }
  
  .legal-card h4 {
    font-size: var(--font-size-base);
  }
  
  .legal-card p {
    font-size: var(--font-size-sm);
  }
}


