/* 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 { width:100%; 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;
  position: relative;
}

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

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

.slogan {
  margin-top:0;
  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 {
  position: relative;
  background: #1f3446;
  padding: 8px 9%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 10;
}
.nav.nav--fixed {
  position: fixed;
  top:0;left:0;right:0;
  z-index:2000;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
}

.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: 0px auto 30px; /* Platz für fixen Kopfbereich */
  margin-top: 15px;
  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:0;
  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:0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Icon-Buttons */
.slideshow-btn {
  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:0;
}

.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:0;
  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:0;
  margin-bottom: 10px;
}

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

.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:0;
  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:0;
}

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

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

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

.kontakt-form {
  margin-top:0;
  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:0;
}

/* 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:0;
}

/* 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:0;
}

/* 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:0;
  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:0;
  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:15;
  }
}

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

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

  .header-inner {
    /* Platz für den Badge rechts schaffen */
    padding-right: 72px;
    align-items: flex-start;
    gap: 6px;
  }

  .logo {
    font-size: 1.25rem;
  }

  /* Badge fest oben rechts im Header "eingehängt" */
  .jubilaeum-badge {
    position: absolute;
    top: 8px;
    right: 1%;      /* passt zum Header-Padding */
    align-items: center;
  }

  .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: 15px;
  }

  .datenschutz-page {
    margin-top:0;
  }
}
.section.about {
  max-width: 1000px;
  margin: 3rem auto;
}

.about-content {
  display: grid;
  gap: 1.5rem;
}

.about-content h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.about-stats {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.about-stats li {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
/*
@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 2fr 1fr;
  }
}
*/
.about-highlight {
  background: #f5f5f5;
  border-left: 6px solid #c4903f;   /* warmes Holz-Gold als Handwerksfarbe */
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  border-radius: 4px;
}

.about-highlight br {
  line-height: 1.8;
}
/* FAQ-Bereich */
.faq {
  max-width: 1000px;
  margin: 2rem auto;
}

.faq-intro {
  margin-bottom: 0.75rem;
}

.faq-item {
  border-top: 1px solid #e0e0e0;
  padding: 0.6rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 0;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.3rem;
}

.faq-downloads {
  margin-top: 1.5rem;
}

.download-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.download-list li {
  margin-bottom: 0.4rem;
}

.download-list a {
  text-decoration: none;
  font-weight: 500;
}

.download-list a:hover {
  text-decoration: underline;
}
/* Navigation auf kleinen Screens kürzen */
@media (max-width: 600px) {

  .nav a[data-view="beispiele"]::after { display:none; } /* sonst Unterstrich stört */

  .nav a[data-view="beispiele"] {
    font-size: 0;           /* Originaltext ausblenden */
    position: relative;
  }
  .nav a[data-view="beispiele"]::before {
    content: "Arbeiten";    /* neuer kurzer Text */
    font-size: 0.9rem;
    color: white;
  }

  .nav a[data-view="faq"] {
    font-size: 0;           
    position: relative;
  }
  .nav a[data-view="faq"]::before {
    content: "FAQ";         
    font-size: 0.9rem;
    color: white;
  }
}
@media (max-width: 600px) {
  .nav {
    gap: 10px;         /* statt 16px */
  }
  .nav a {
    font-size: 0.85rem;
    padding: 2px 0;
  }
}
