/* ==================== VARIABLEN ==================== */
:root {
  --primary: #960443;
  --primary-dark: #7a0336;
  --primary-light: rgba(150, 4, 67, .1);
  --text: #333;
  --text-light: #666;
  --background: #f9f9f9;
  --white: #fff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e6edf5;
  --gray-600: #4a5568;
  --shadow: 0 2px 4px rgba(0, 0, 0, .1);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, .15);
  --transition: all .3s ease;

  /* Höhe des eingeklappten Shop-Grids (ca. 2 Reihen) – per MQ unten angepasst */
  --logos-collapsed: 520px;
}

/* ==================== BASIS ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  padding-top: 100px;
}

/* Seitenrand nur Desktop */
@media (min-width: 901px) {
  body {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.logo img {
  height: 50px;
  transition: var(--transition);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: .5rem 0;
  transition: var(--transition);
  display: inline-block;
}
nav a:hover {
  color: var(--primary);
  transform: scale(1.1);
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
nav a:hover::after {
  width: 100%;
}

/* ==================== HERO ==================== */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
              url('bilder/Digital2-min.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  margin-bottom: 4rem;
  transform-origin: center;
}
.hero-content {
  max-width: 800px;
}
.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* ==================== SECTIONS ==================== */
section {
  padding: 4rem 2rem;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-size: 2.5rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ==================== ICON NAV ==================== */
.icon-container {
  display: flex;
  justify-content: center;
  gap: 10%;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.icon-bg {
  background: var(--primary);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
.icon {
  color: #fff;
  font-size: 2rem;
}
.icon-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.icon-item a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon-item a:hover {
  color: var(--primary);
}

/* ==================== BALKEN ==================== */
.balken {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem;
  background: var(--primary-light);
  border-radius: 12px;
  gap: 2rem;
  flex-wrap: wrap;
}
.parkplatze,
.fachgeschaefte,
.verkaufsflaeche {
  text-align: center;
  padding: 1rem;
}
.zahl {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.beschreibung {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ==================== TABELLE ==================== */
.table-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
th {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ==================== BIRD VIEW ==================== */
.bird-perspective {
  text-align: center;
  margin: 2rem 0;
}
.bird-perspective img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ==================== SHOPS (ein Grid, expandiert) ==================== */
.logos {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.show-more-checkbox {
  position: absolute;
  left: -9999px;
}
/* Desktop: 4 große Kacheln pro Reihe */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  max-height: var(--logos-collapsed);
  transition: max-height .4s ease;
}
.show-more-checkbox:checked ~ .logos-grid {
  max-height: 5000px;
}
/* „aufklappen“ */
.logo-container {
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: var(--transition);
  aspect-ratio: 1/1;
  background: #fff;
}
.logo-container:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.logo-container img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.logo-description {
  margin-top: .45rem;
  text-align: center;
  font-size: .82rem;
  line-height: 1.15;
  color: #4b5563;
}
.show-more-button {
  margin-top: 1.25rem;
  padding: .9rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: inline-block;
}
.show-more-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}
.show-more-button::after {
  content: "Mehr anzeigen";
}
.show-more-checkbox:checked ~ .show-more-button::after {
  content: "Weniger anzeigen";
}

/* ==================== ÄRZTE (Typografie wie Original) ==================== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
  text-align: center;
}
.card-title {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .35rem;
  position: relative;
}
.card-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--primary);
  margin: .6rem auto 0;
  border-radius: 2px;
  opacity: .95;
}
.card-subtitle {
  color: #6b7280;
  margin: .5rem 0 1.25rem;
}
.card-content + .expand-content {
  border-top: 1px solid var(--gray-300);
}
/* Toggle ausblenden */
.expand-toggle {
  position: absolute;
  left: -9999px;
}
.expand-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--gray-200);
  color: var(--primary);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--transition);
}
.expand-btn:hover {
  background: var(--gray-600);
  color: #fff;
}
.expand-btn::after {
  content: "Mehr anzeigen";
}
.expand-toggle:checked ~ .expand-btn::after {
  content: "Weniger anzeigen";
}
.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.expand-toggle:checked ~ .expand-content {
  max-height: 520px;
}
.expand-content .contact-info {
  text-align: center;
  padding: 1.2rem 1.5rem 1.6rem;
}
.contact-item {
  margin: .45rem 0;
  color: #4b5563;
}
.contact-item strong {
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin: .35rem 0 .2rem;
}

/* ==================== KONTAKT (nur Karte, mittig) ==================== */
#kontakt .section-title {
  text-align: center;
}
#kontakt .map-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 30rem;
}
#kontakt iframe {
  width: 100%;
  height: 30rem;
  border: 0;
}

/* ==================== MIETANFRAGEN ==================== */
#flaechen {
  text-align: center;
}
#flaechen p {
  margin-bottom: .5rem;
}
#flaechen .btn {
  margin-top: 2rem;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.footer-section h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #fff;
  margin-top: .5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: .75rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--gray-200);
  padding-left: 5px;
}
.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ==================== ANIMATIONEN ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  :root {
    --logos-collapsed: 210px;
  }
  html {
    font-size: 14px;
  }
  header {
    flex-direction: column;
    padding: 1rem;
  }
  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  /* Shops: kleinere, QUADRATISCHE Tiles, viele pro Reihe */
  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: .75rem;
  }
  .logo-container {
    padding: .6rem;
    border-radius: 8px;
    aspect-ratio: 1/1;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .balken {
    flex-direction: column;
    gap: 2rem;
  }
  .icon-container {
    flex-direction: column;
    gap: 2rem;
  }
  /* auf Handy kein zusätzlicher Seitenrand */
  body {
    padding-left: 0;
    padding-right: 0;
  }
  #kontakt iframe {
    height: 320px;
  }
}

/* Bild oder Container */
.atmend {
  animation: breathe 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.97;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

footer .made-by {
  margin-top: .75rem;
  text-align: center;
  font-size: .8rem;
  opacity: 0.75;
}

footer .madeby-link {
  color: rgba(255, 255, 255, 0.7);   /* leicht abgeschwächt weiß */
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

footer .madeby-link:hover {
  color: #fff;                      /* beim Hover klar weiß */
  opacity: 1;
}
