/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --bg-primary:    #f8f9fa;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --text-primary:  #1a202c;
    --text-secondary:#4a5568;
    --text-muted:    #718096;
    --accent:        #a93226;
    --accent-hover:  #c0392b;
    --accent-light:  #fdecea;
    --border:        #e2e8f0;
    --nav-bg:        rgba(248,249,250,0.92);
    --shadow:        0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
    --radius:        10px;
    --radius-lg:     16px;
    --transition:    0.25s ease;
  }
  
  [data-theme="dark"] {
    --bg-primary:    #0f1117;
    --bg-secondary:  #1a1d27;
    --bg-card:       #1e2130;
    --text-primary:  #e2e8f0;
    --text-secondary:#a0aec0;
    --text-muted:    #718096;
    --accent:        #c0392b;
    --accent-hover:  #e74c3c;
    --accent-light:  #2d1a19;
    --border:        #2d3748;
    --nav-bg:        rgba(15,17,23,0.92);
    --shadow:        0 2px 16px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
  }
  
  /* ===== RESET & BASE ===== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
  }
  
  a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
  a:hover { color: var(--accent-hover); }
  
  img { max-width: 100%; display: block; }
  
  /* ===== TYPOGRAPHY ===== */
  h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; }
  h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.3; }
  h3 { font-size: 1.2rem; font-weight: 600; }
  p  { color: var(--text-secondary); }
  
  /* ===== LAYOUT ===== */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  section { padding: 5rem 0; }
  
  /* ===== NAVIGATION ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
  }
  
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .nav-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
  }
  
  .nav-logo span { color: var(--accent); }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
  }
  
  .nav-links a:hover { color: var(--accent); }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* ===== THEME TOGGLE ===== */
  .theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    width: 52px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    padding: 3px;
  }
  
  .theme-toggle::after {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  [data-theme="dark"] .theme-toggle::after {
    transform: translateX(24px);
  }
  
  .theme-toggle-icon {
    position: absolute;
    font-size: 12px;
    pointer-events: none;
  }
  
  .icon-sun  { left: 6px;  }
  .icon-moon { right: 6px; }
  
  /* ===== HAMBURGER ===== */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }
  
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
  }
  
  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(169,50,38,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  
  .hero-content {
    max-width: 680px;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(169,50,38,0.2);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
  }
  
  .hero h1 {
    margin-bottom: 1.25rem;
  }
  
  .hero h1 .highlight {
    color: var(--accent);
    position: relative;
  }
  
  .hero-tagline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
  }
  
  .hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 540px;
  }
  
  /* ===== HERO CLAIM (Slogan) ===== */
  .hero-claim {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.5;
  }
  
  .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
  }
  
  .stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
  }
  
  .stat-item .number span { color: var(--accent); }
  
  .stat-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  /* ===== BUTTONS ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  
  .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169,50,38,0.3);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
  }
  
  .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
  }
  
  /* ===== SECTION HEADER ===== */
  .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
  }
  
  .section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
  }
  
  .section-header h2 { margin-bottom: 0.75rem; }
  
  .section-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-secondary);
  }
  
  /* ===== CARDS ===== */
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
  }
  
  .card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-4px);
  }
  
  /* ===== SERVICES ===== */
  #leistungen { background: var(--bg-secondary); }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .service-card .icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
  }
  
  .service-card h3 { margin-bottom: 0.5rem; }
  
  .service-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .tag {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
  }
  
  /* ===== ABOUT ===== */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
  }
  
  .about-photo {
    position: relative;
  }
  
  .photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .photo-placeholder .icon { font-size: 2.5rem; }
  
  .about-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
  }
  
  .photo-frame {
    position: absolute;
    inset: -12px;
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius-lg) + 12px);
    opacity: 0.3;
    pointer-events: none;
  }
  
  .about-text h2 { margin-bottom: 1.25rem; }
  
  .about-text p { margin-bottom: 1rem; }
  
  .timeline {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.55rem;
    flex-shrink: 0;
  }
  
  .timeline-item .year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 52px;
    margin-top: 0.3rem;
  }
  
  .timeline-item .desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
  }
  
  /* ===== REGIONS ===== */
  #regionen { background: var(--bg-secondary); }
  
  .regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .region-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .region-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
  }
  
  .region-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
  .region-card p  { font-size: 0.88rem; margin: 0; }
  
  .remote-banner {
    margin-top: 1.5rem;
    background: var(--accent-light);
    border: 1px solid rgba(169,50,38,0.2);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent);
    font-weight: 500;
  }
  
  /* ===== CONTACT ===== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
  }
  
  .contact-info h2 { margin-bottom: 1rem; }
  .contact-info p  { margin-bottom: 1.5rem; }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
  }
  
  .contact-item .icon { color: var(--accent); font-size: 1.1rem; }
  
  /* ===== FORM ===== */
  .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(169,50,38,0.1);
  }
  
  .form-group textarea { resize: vertical; min-height: 130px; }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
  }
  
  .form-success .check { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.75rem; }
  
  /* ===== FOOTER ===== */
  footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .footer-logo { font-weight: 700; color: var(--text-primary); }
  .footer-logo span { color: var(--accent); }
  .footer-copy { font-size: 0.85rem; color: var(--text-muted); }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a { font-size: 0.85rem; color: var(--text-muted); }
  .footer-links a:hover { color: var(--accent); }
  
  .service-list {
    margin-top: 0.85rem;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .service-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 1.1rem;
    position: relative;
  }
  
  .service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
  }
  
  .service-list strong {
    color: var(--text-primary);
  }
  
  /* ===== SCROLL ANIMATIONS ===== */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 64px; left: 0; right: 0;
      background: var(--nav-bg);
      backdrop-filter: blur(12px);
      padding: 1.5rem;
      border-bottom: 1px solid var(--border);
      gap: 1.25rem;
    }
  
    .hamburger { display: flex; }
  
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  
    .hero-stats { gap: 1.5rem; }
  
    .form-row { grid-template-columns: 1fr; }
  
    section { padding: 3.5rem 0; }
  }