body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.classic-header {
    background: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav .nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav .nav-links li a:hover {
    color: #007BFF;
}

.classic-hero {
    padding: 60px 0;
    background: #f0f0f0;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5em;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn {
    background: #007BFF;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.btn:hover {
    background: #0056b3;
}

.classic-services {
    background: #fff;
    padding: 60px 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.classic-image-text .image-text-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.image-block img {
    width: 65%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.classic-about .about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text, .about-image {
    flex: 1;
}

.about-image img {
    width: 65%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.classic-testimonials {
    background: #f0f0f0;
    padding: 60px 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.classic-cta {
    background: #333;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.classic-cta a.btn {
    background: white;
    color: #007BFF;
}

.classic-cta a.btn:hover {
    background: #f0f0f0;
}

.section {
    text-align: center;
    padding: 60px 20px;
}

.minimal-footer {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

@media screen and (max-width: 768px) {
    .classic-hero .container,
    .classic-image-text .container,
    .classic-about .container {
        flex-direction: column;
    }

    .image-text-wrapper,
    .about-grid {
        flex-direction: column;
    }

    .text-block, .image-block,
    .about-text, .about-image {
        max-width: 100%;
    }
}

.classic-hero .hero-image img {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* ---- Back-Button im Subdomain-Nav ---- */
.back-nav {
    margin: 2rem 0;          /* Abstand oben und unten */
    padding-left: 1rem;      /* kleiner Innenabstand links */
    text-align: left;        /* Button linksbündig */
  }
  
  .back-nav .btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem; /* großzügiges Padding */
    border-radius: 999px;    /* Pill-Shape */
    background: #333;        /* dunkelgrauer Hintergrund */
    color: #fff;             /* weißer Text */
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s ease, transform 0.1s ease;
  }
  
  .back-nav .btn-back:hover {
    background: #666;        /* etwas helleres Grau im Hover */
    transform: translateX(-3px);
  }
  
 /* === HERO FIX für dein aktuelles verschachteltes Markup === */
/* Der äußere Hero (#home) bekommt zwei Spalten: links Text, rechts (innere) Bild-Section */
.classic-hero#home > .container{
  display: flex;
  align-items: flex-end;      /* Bild wirkt etwas tiefer */
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;            /* mobil darf's umbrechen */
}

/* Die innere verschachtelte Hero-Section als normales Flex-Kind behandeln */
.classic-hero#home > .container > section.classic-hero{
  flex: 0 0 auto;
}

/* Bildgröße + sanfter Downshift (überstimmt ältere Regeln dank höherer Spezifität) */
.classic-hero#home .hero-image img{
  width: clamp(120px, 18vw, 220px);
  height: auto;
  transform: translateY(6%);
  display: block;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Mobile: untereinander & kein Downshift */
@media (max-width: 768px){
  .classic-hero#home > .container{
    flex-direction: column;
    align-items: flex-start;
  }
  .classic-hero#home .hero-image img{
    transform: none;
    margin-top: 12px;
  }
}
/* --- HERO: Logo größer machen (überstimmt alte Regeln) --- */
.classic-hero#home .hero-image img{
  width: clamp(220px, 30vw, 480px);  /* größer: min 220px, meist ~30% der Viewport-Breite, max 480px */
  max-width: none;                   /* killt das alte max-width:60% */
  height: auto;
  transform: translateY(6%);         /* bleibt leicht nach unten versetzt */
  display: block;
}

/* Reserviert rechts Platz fürs Bild, damit es nicht vom Text „weggequetscht“ wird */
.classic-hero#home > .container > section.classic-hero{
  flex: 0 0 clamp(220px, 30vw, 480px);
}

/* Optional: vertikale Ausrichtung etwas neutraler (statt „hängt“ stark unten) */
.classic-hero#home > .container{
  align-items: center;
}

.news-banner {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}


.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; /* Abstand zwischen den Karten */
  max-width: 1200px;
  width: 100%;
}

.news-card {
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.news-img {
  width: 100%;
  height: auto;
  display: block;
}

.news-text {
  padding: 20px;
}

.news-text h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
.news-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #333;
  position: relative;
}

/* optional schicke Unterstreichung */
.news-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #007bff; /* Akzentfarbe anpassbar */
  margin: 8px auto 0 auto;
  border-radius: 3px;
}

/* Wrapper + Überschrift optional */
.gallery-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.gallery-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}

/* 4-Spalten Grid (responsive) */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

/* Kacheln: feste Thumbnail-Höhe via aspect-ratio,
   Bilder füllen sauber mit object-fit: cover */
.gallery-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden; /* sorgt fürs „runde Bild“ */
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
  aspect-ratio: 4 / 3; /* einheitliches Format (änderbar auf 1/1 für quadratisch) */
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* skaliert & schneidet gleichmäßig */
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce) {
  .gallery-item { transition: none; }
}


.slider-heading {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.classic-slider {
  background: #f5f5f5;
  padding: 40px 20px;
}

.visitor-counter {
    display: flex;                 
    justify-content: space-between;
    align-items: center;           
    width: 100%;                   
    padding: 0 20px;               
    box-sizing: border-box;        /* Padding gehört zur Gesamtbreite */
    overflow: hidden;              /* verhindert horizontales Scrollen */
    gap: 10px;                     /* etwas Abstand zwischen Text & Logo */
}

/* Textteil: darf umbrechen und schrumpfen */
.visitor-counter p {
    margin: 0;
    flex: 1;        /* nimmt den verfügbaren Platz */
    min-width: 0;   /* erlaubt echtes Umbrechen statt Überlaufen */
}

/* Logo: Begrenzen + Opacity */
.nav-logo img {
    max-width: 180px;              /* begrenzt die Breite */
    height: auto;
    opacity: 0.8;                  
    transition: opacity 0.2s ease; 
}

.nav-logo img:hover {
    opacity: 1;                    
}
