/* Shared stylesheet for the statically generated local-SEO pages
   (scripts/generate-pages.mjs). These pages are structural clones of the
   Vue homepage (src/components/... + src/style.css) — kept in sync by hand
   since static HTML can't share Vue SFCs. Only the Hero headline/intro and
   the page <head> metadata differ per city. */

@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fonts/fira-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-sunken: #f3f4f6;
  --ink: #001d35;
  --ink-soft: #4c5c6c;
  --ink-faint: #8794a1;
  --line: rgba(0, 29, 53, 0.14);
  --line-strong: rgba(0, 29, 53, 0.26);
  --accent: #001d35;
  --accent-deep: #000d18;
  --accent-soft: #e7ecf0;
  --navy-deep: #050f1a;
  --navy-mid: #001d35;
  --success: #1a7a4c;
  --success-soft: #e6f3ec;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --font-display: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius-lg: 10px;
  --radius-md: 7px;
  --radius-sm: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --nav-height: 84px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 40px;
  }
}

.center {
  text-align: center;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--navy-deep);
  border-color: #fff;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s var(--ease-out);
}

.btn-ghost-dark:hover {
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

@media (min-width: 640px) {
  .field input,
  .field textarea {
    font-size: 0.98rem;
  }
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status-success {
  background: var(--success-soft);
  color: #135533;
}

.form-status-error {
  background: var(--danger-soft);
  color: #7a201a;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nav (src/components/AppNav.vue) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: auto;
}

.links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.links a {
  position: relative;
  padding-block: 4px;
  transition: color 0.2s var(--ease-out);
}

.links a:hover {
  color: var(--ink);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 13px 2px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 14px;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .links {
    display: flex;
  }
  .burger {
    display: none;
  }
}

/* ---------- Hero (src/components/sections/HeroSection.vue) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 29, 53, 0.62) 0%, rgba(0, 29, 53, 0.58) 38%, rgba(0, 29, 53, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 64px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  max-width: 24ch;
}

.hero-content p {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  display: none;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% {
    opacity: 1;
    top: 8px;
  }
  70% {
    opacity: 0;
    top: 20px;
  }
  100% {
    opacity: 0;
    top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll span {
    animation: none;
  }
}

@media (min-width: 640px) {
  .hero-scroll {
    display: block;
  }
}

/* ---------- Services (src/components/sections/ServicesSection.vue) ---------- */
.services {
  padding-block: 96px;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.services-grid {
  display: grid;
  gap: 40px;
}

.services-media {
  border: 1px solid var(--line);
}

.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.services-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.services-list li {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.services-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.services-list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.services-list p {
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
  }
}

/* ---------- Area (src/components/sections/AreaSection.vue) ---------- */
.area {
  padding-block: 96px;
  background: var(--paper-sunken);
}

.area-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.area-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 16ch;
}

.area-text p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

.area-visual {
  width: 100%;
}

.area-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--line);
}

/* Nur auf der Umgebungs-Seite: Orte-Liste unterhalb von Text/Karte */
.area-towns {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
}

.area-town-group h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.area-town-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.area-town-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.area-town-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.area-town-list .km {
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

@media (min-width: 860px) {
  .area-grid {
    grid-template-columns: 1fr 0.95fr;
    gap: 64px;
  }
  .area-map {
    aspect-ratio: 1 / 1;
  }
  .area-towns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Contact (src/components/sections/ContactSection.vue) ---------- */
.contact {
  padding-block: 96px 120px;
}

.contact-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.contact-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-inline: auto;
}

.contact-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--paper-sunken);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.field-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.field-checkbox a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form .btn {
  align-self: stretch;
  text-align: center;
}

.contact-direct {
  position: relative;
  padding: 36px;
  background: var(--navy-mid);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-direct-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-list svg {
  flex-shrink: 0;
  color: #cfe3f2;
}

.contact-list a:hover {
  text-decoration: underline;
}

@media (min-width: 480px) {
  .form-row.form-row-street {
    grid-template-columns: 2.2fr 1fr;
  }
  .form-row.form-row-zip {
    grid-template-columns: 1fr 1.8fr;
  }
  .contact-form .btn {
    align-self: flex-start;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form {
    padding: 36px;
  }
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

/* ---------- Footer (src/components/AppFooter.vue) ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.68);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-icon-link:hover {
  color: #fff;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-block: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.46);
}

.footer-bottom a:hover {
  color: #fff;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
