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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Farben / Akzente */
:root {
  --primary: #2d4f6b;
  --primary-light: #3f6c92;
  --accent: #cfa64a;
}

/* Top-Bar (Header + Navigation fixiert) */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* HEADER */
.header {
  background: var(--primary);
  color: #fff;
  padding: 10px 9%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-box {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.slogan {
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* 25-Jahre-Badge */
.jubilaeum-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.badge-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.badge-25 {
  font-size: 1.4rem;
  line-height: 1;
}

.badge-jahre {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* NAVIGATION */
.nav {
  background: #1f3446;
  padding: 8px 9%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* MAIN */
.main {
  max-width: 1000px;
  margin: 165px auto 30px; /* Platz für fixen Kopfbereich */
  padding: 0 12px;
  flex: 1;
}

/* Views (nur eine Ansicht gleichzeitig sichtbar) */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* HERO */
.hero {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-text {
  font-size: 1.05rem;
}

/* SLIDESHOW */
.slideshow-section {
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.slideshow-container {
  margin-top: 10px;
  position: relative;
  height: 70vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slideshow-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.slideshow-image.fade-out {
  opacity: 0;
}

.slideshow-image.zoomed {
  max-height: 90vh;
}

/* Slideshow-Steuerung */
.slideshow-controls {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Icon-Buttons */
.slideshow-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  font-size: 1.8rem;
  color: var(--primary);
  padding: 4px;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
}

.slideshow-btn:focus {
  outline: none;
}

.slideshow-btn:hover {
  color: var(--accent);
}

.slideshow-btn:active {
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* Sections allgemein */
.section {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Warum wir - einfache Liste */
.list {
  list-style: none;
  margin-top: 6px;
}

.list-item {
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

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

/* Leistungen (HTML im li) */
.section strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 4px;
  margin-bottom: 4px;
  color: var(--primary-light);
}

.section ul {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.section ul li {
  list-style: disc;
  margin-bottom: 4px;
}

/* Kontakt */
.kontakt-text {
  margin-top: 4px;
  margin-bottom: 10px;
}

.kontakt-box p + p {
  margin-top: 3px;
}

.kontakt-box a {
  color: var(--primary);
  text-decoration: none;
}

.kontakt-box a:hover {
  text-decoration: underline;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-whatsapp::before {
  content: "✆";
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* Datenschutz-Hinweise im Kontaktbereich */
.datenschutz-hinweis,
.datenschutz-hinweis-form {
  font-size: 0.8rem;
  color: #555;
  margin-top: 6px;
}

.datenschutz-hinweis-form a {
  color: var(--primary);
  text-decoration: none;
}

.datenschutz-hinweis-form a:hover {
  text-decoration: underline;
}

/* Kontaktformular */
.kontakt-form-wrapper {
  margin-top: 10px;
}

.kontakt-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 79, 107, 0.15);
}

.form-group-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.form-group-check input[type="checkbox"] {
  margin-top: 3px;
}

/* Senden-Button */
.btn-primary {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

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

/* Impressum */
.impressum-content p + p {
  margin-top: 3px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 10px 9%;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Arbeiten-Navigation (Ordner-Auswahl) */
.arbeiten-nav {
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arbeiten-btn {
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.arbeiten-btn:hover {
  background: #eaeaea;
}

.arbeiten-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Galerie-Bereich */
.arbeiten-gallery {
  margin-top: 4px;
}

/* Arbeiten-Galerie-Bild: keine Überblendung */
.arbeiten-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  opacity: 1 !important;
  transition: none !important;
}

/* Bild-Zähler in der Arbeiten-Galerie */
.arbeiten-counter {
  margin-top: 6px;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

/* Datenschutzerklärung Seite */
.datenschutz-page {
  max-width: 1000px;
  margin: 40px auto 40px;
  padding: 0 12px;
}

.datenschutz-page h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.datenschutz-page h2 {
  font-size: 1.2rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--primary-light);
}

.datenschutz-page p {
  margin-bottom: 8px;
}

.datenschutz-page ul {
  margin: 6px 0 10px 20px;
}

/* Responsive */
@media (max-width: 800px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .logo {
    font-size: 1.4rem;
  }

  .main {
    margin-top: 180px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 8px 5%;
  }

  .nav {
    padding: 6px 5%;
    gap: 10px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .jubilaeum-badge {
    align-items: flex-start;
  }

  .badge-circle {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }

  .badge-25 {
    font-size: 1.1rem;
  }

  .badge-jahre {
    font-size: 0.6rem;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  .slideshow-container {
    height: 60vh;
    max-height: 420px;
  }

  .section {
    padding: 14px 14px;
  }

  .form-row {
    flex-direction: column;
  }

  .main {
    margin-top: 210px;
  }

  .datenschutz-page {
    margin-top: 80px;
  }
}
