/* ==========================================================================
   1. CSS VARIABLEN (Zentrale Einstellungen für die ganze Seite)
   ========================================================================== */
:root {
  /* Farben */
  --c-text-main: #3b3b3b;
  --c-text-light: #8c8e90;
  --c-brand-main: #bc7419;
  --c-brand-dark: #a96c1e;
  --c-accent: #fda056;
  --c-footer-bg: #333333;
  --c-footer-border: #444444;
  --c-bg-light: #f9f9f9;
  --c-border: #e2e2e2;

  /* Abstände (Gaps & Margins) */
  --gap-grid: 3rem; /* Abstand zwischen den Grid-Boxen */
  --margin-section: 3rem; /* Abstand zwischen den Haupt-Blöcken */

  /* Layout & Dimensionen */
  --max-width-page: 70rem; /* Maximale Breite der Webseite */
  --min-height-img: 15rem; /* Mindesthöhe für Bilder auf dem Handy */

  /* Eckenabrundungen (Border-Radius) */
  --radius-img: 1.25rem; /* Ecken für große Bilder & Routen-Box */
  --radius-btn: 3rem; /* Ecken für den Routen-Button (Pillenform) */
  --radius-box: 0.25rem; /* Leichte Abrundung z.B. für Zitat-Boxen */

  /* Animationen */
  --transition-speed: 0.3s; /* Standard-Geschwindigkeit für Hover-Effekte */
}

/* ==========================================================================
   2. ANTI-FOUC (Verhindert das Layout-Springen beim Laden)
   ========================================================================== */
app-header,
app-footer {
  display: block;
}

body {
  opacity: 0;
  animation: fadeIn 0.25s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   3. RESET & GLOBALES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-main);
  background: #fff;
}

/* ==========================================================================
   4. TYPOGRAFIE & SEO-HEADINGS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--c-text-main);
  margin-bottom: 1rem;
  font-weight: 600;
}

.style-h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
}
.style-h3 {
  font-size: 1.5rem;
}
.style-h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--c-brand-main);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--c-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

hr {
  border: 0;
  border-bottom: 1px solid var(--c-border);
  margin: 2.5rem auto !important;
  width: 50%;

  &.small {
    width: 2rem;
  }
}

.text-center {
  text-align: center;
}
.highlight-text {
  color: var(--c-brand-main);
}
.intro-text {
  margin-top: 2.5rem;
  font-size: 1.125rem;
}

.mobile-break {
  display: none;
}

/* ==========================================================================
   5. LAYOUT & BILDER
   ========================================================================== */
.container {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 2.5rem;
  margin-bottom: var(--margin-section);
}

.hero-image {
  margin-bottom: var(--margin-section);
}

.hero-image picture {
  display: block;
  width: 100%;
}

.hero-image img {
  width: 100%;
  min-height: var(--min-height-img);
  object-fit: cover;
  border-radius: var(--radius-img);
}

.hero-image img.align-left {
  object-position: left center;
}

.hero-image .portrait-slider {
  display: grid;
  gap: 0.875rem;
}

.hero-image .portrait-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-image .portrait-slide {
  display: block;
  width: 100%;
}

.hero-image .portrait-slide img {
  height: 100%;
}

.hero-image .portrait-slide:first-child img {
  object-position: left center;
}

.hero-image .portrait-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.hero-image .portrait-dot {
  appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

.hero-image .portrait-dot:hover {
  background: var(--c-accent);
}

.hero-image .portrait-dot:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.hero-image .portrait-dot.is-active {
  background: var(--c-brand-main);
  transform: scale(1.15);
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
header {
  padding: 2.8rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  gap: var(--gap-grid);
  margin-bottom: 0;
}

.logo img {
  max-width: 11.25rem;
  min-height: auto;
}

nav {
  display: contents;
}

.nav-links {
  list-style: none;
  display: flex;
  background-color: var(--c-brand-main);
  flex-grow: 1;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-box);
  overflow: hidden;
}

.nav-links li {
  display: block;
}

.nav-links li a {
  color: #fff;
  display: block;
  padding: 0 2.5rem;
  line-height: 2.2em;
  transition: background var(--transition-speed);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: var(--c-brand-dark);
}

.nav-links:hover li a.active:not(:hover) {
  background-color: transparent;
}

/* ==========================================================================
   7. GRIDS
   ========================================================================== */
.grid-3,
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-grid);
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.grid-3 > div {
  flex: 1 1 17.5rem;
  max-width: 22rem;
  width: 100%;
}

.grid-2 > div {
  flex: 1 1 25rem;
  max-width: 35rem;
  width: 100%;
}
.grid-2 > div.full-width {
  max-width: none;
}

.focus-grid {
  align-items: flex-start;
  column-gap: var(--gap-grid);
  row-gap: 0.25rem;
}

.focus-grid > div {
  flex: 1 1 18rem;
  max-width: none;
}

/* ==========================================================================
   8. ICONS (SVG CSS-MASKS) & LISTEN
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: text-bottom;
  margin-right: 0.5rem;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.icon-brand {
  background-color: var(--c-brand-main);
}
.icon-footer {
  background-color: var(--c-text-light);
}

.icon-search {
  -webkit-mask-image: url("img/svg/search.svg");
  mask-image: url("img/svg/search.svg");
}
.icon-message {
  -webkit-mask-image: url("img/svg/message.svg");
  mask-image: url("img/svg/message.svg");
}
.icon-eye {
  -webkit-mask-image: url("img/svg/eye.svg");
  mask-image: url("img/svg/eye.svg");
}
.icon-telephone {
  -webkit-mask-image: url("img/svg/telephone.svg");
  mask-image: url("img/svg/telephone.svg");
}
.icon-mail {
  -webkit-mask-image: url("img/svg/mail.svg");
  mask-image: url("img/svg/mail.svg");
}
.icon-browser {
  -webkit-mask-image: url("img/svg/browser.svg");
  mask-image: url("img/svg/browser.svg");
}

.check-list,
.arrow-list,
.contact-list {
  list-style: none;
}

.check-list li,
.arrow-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  color: var(--c-brand-main);
  position: absolute;
  left: 0;
}

.arrow-list li::before {
  content: "▸";
  color: var(--c-brand-main);
  position: absolute;
  left: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   9. ZITATE
   ========================================================================== */
.client-says {
  font-style: italic;
  color: #fff;
  padding: 1.5rem;
  background: var(--c-brand-main);
  border-radius: var(--radius-box);
  position: relative;
  margin-bottom: 1rem;
}
.client-says::after {
  content: "";
  position: absolute;
  bottom: -1.25rem;
  left: 2.5rem;
  border: 0.625rem solid transparent;
  border-top-color: var(--c-brand-main);
}
.quotes {
  text-align: right;
  color: var(--c-text-light);
  font-style: italic;
  margin-right: 1.25rem;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
  background: var(--c-footer-bg);
  color: var(--c-text-light);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
  border-top: 4px solid var(--c-brand-main);
}

footer h2,
footer h3 {
  color: #fff;
}
footer a {
  color: var(--c-text-light);
}
footer a:hover {
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}

.footer-panel {
  position: relative;
  padding-top: 1.1rem;
  text-align: left;
  width: 100%;
  max-width: 33rem;
}

.footer-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5rem;
  height: 2px;
  background: var(--c-brand-main);
  transform: none;
}

.footer-contact {
  min-width: 0;
}

.footer-contact p {
  margin-bottom: 1.25rem;
  max-width: none;
}

.footer-contact .contact-list {
  display: grid;
}

.footer-contact .contact-list li {
  justify-content: flex-start;
}

.footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-meta-separator {
  color: var(--c-footer-border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-footer-border);
  font-size: 0.875rem;
}

/* ==========================================================================
   11. RECHTSTEXTE (Clean & Standardized)
   ========================================================================== */
.legal-page {
  background: #fff;
}

.legal-shell {
  margin-top: 0;
}

.legal-content {
  max-width: 58rem;
  padding: 0;
}

.legal-content a {
  text-decoration: underline;
}

.legal-content > :last-child {
  margin-bottom: 0;
}

.legal-content h1 {
  color: var(--c-brand-main);
  font-size: clamp(2.15rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  color: var(--c-brand-dark);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--c-brand-main);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content blockquote {
  font-size: 1rem;
  line-height: 1.6;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.5rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 1.5rem 0;
  background: var(--c-bg-light);
  border-radius: var(--radius-box);
}

.legal-content td,
.legal-content th {
  border: 1px solid var(--c-border);
  padding: 1rem;
  min-width: 16rem;
  vertical-align: top;
}

.legal-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--c-bg-light);
  border-left: 0.25rem solid var(--c-brand-main);
  border-radius: var(--radius-box);
}

.legal-content img {
  border-radius: var(--radius-box);
  margin: 1rem 0;
}

.imprint-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.75rem;
}

.imprint-list > div {
  padding: 0;
}

.imprint-list dt {
  color: var(--c-brand-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.imprint-list dd {
  margin: 0;
  color: var(--c-text-main);
}

.legal-content .inline-lock-icon {
  display: inline-block;
  vertical-align: text-bottom;
  margin: 0 0.2rem;
}

/* ==========================================================================
   12. ROUTEN-KARTE & ANIMIERTER BUTTON (60/40 Split)
   ========================================================================== */
.grid-2 .map-image {
  margin-bottom: 0;
  display: flex;
  flex: 6 1 26rem;
  max-width: 100%;
}

.map-image picture {
  display: block;
  width: 100%;
}

.map-image img {
  width: 100%;
  height: 100%;
  min-height: var(--min-height-img);
  object-fit: cover;
  object-position: left center;
  margin: 0;
  border-radius: var(--radius-img);
}

.grid-2 .route-box {
  background: var(--c-bg-light);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-img);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 4 1 20rem;
  max-width: 100%;
}

.route-address {
  font-size: 1.125rem;
  color: var(--c-text-light);
  margin-bottom: 2rem;
}

.btn-route {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--c-brand-main);
  color: #fff !important;
  border-radius: var(--radius-btn);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  animation: pulse 2s infinite;
}

.btn-route .arrow {
  transition: transform var(--transition-speed) ease;
}

.btn-route::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.route-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.route-box:hover .btn-route {
  background-color: var(--c-brand-dark);
  transform: scale(1.05);
}

.route-box:hover .btn-route::before {
  left: 100%;
}

.route-box:hover .btn-route .arrow {
  transform: translateX(5px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(188, 116, 25, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(188, 116, 25, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(188, 116, 25, 0);
  }
}

/* ==========================================================================
  13. MOBILE ANPASSUNGEN
  ========================================================================== */
@media (max-width: 37.5rem) {
  .hero-image.container {
    padding: 0 1.5rem;
  }

  .hero-image .portrait-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-image .portrait-gallery::-webkit-scrollbar {
    display: none;
  }

  .hero-image .portrait-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .hero-image .portrait-dots {
    display: flex;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .logo {
    margin-bottom: 1.25rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }
  .nav-links li {
    flex: 1 1 50%;
    min-width: 8.75rem;
    margin: 0;
  }
  .nav-links li a {
    padding: 0 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
  }

  .footer-grid {
    display: flex;
  }

  .footer-contact {
    max-width: none;
  }

  .footer-panel {
    padding-top: 1rem;
  }

  .footer-meta-links {
    justify-content: center;
  }

  .legal-content {
    max-width: none;
  }

  .legal-content h1 {
    font-size: 1.75rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .legal-content td,
  .legal-content th {
    min-width: 14rem;
    padding: 0.875rem;
  }

  .focus-grid {
    row-gap: 0;
  }

  .mobile-break {
    display: block;
  }
}

/* ==========================================================================
   14. BILDSCHIRM-ABHÄNGIGKEITEN (Verstecken von Elementen)
   ========================================================================== */
/* Versteckt das Routen-Bild komplett unter 410px (25.625rem) */
@media (max-width: 25.625rem) {
  .map-image {
    display: none !important;
  }
}

/* CSS SPERRE (Ultra-kleine Screens) */
@media (max-width: 19.5rem) {
  body::before {
    content: "Ihr Bildschirm ist zu schmal. Bitte nutzen Sie ein größeres Gerät oder drehen Sie Ihr Smartphone.";
    position: fixed;
    inset: 0;
    background: #fff;
    color: var(--c-text-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-weight: 600;
  }
  body {
    overflow: hidden;
  }
}
