@import url("fonts.css");

:root {
  --blue: #2f7dbf;
  --blue-dark: #245f92;
  --nav-link: #dbf2fb;
  --page-bg: rgba(253, 236, 211, 0.3);
  --text: #333333;
  --heading: #2f7dbf;
  --border: #e2ddd0;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

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

/* Header */

.site-header {
  background: var(--blue);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
}

.site-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  text-align: center;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin: 0 auto;
  width: 41.5px;
  height: 41.5px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid #fff;
  border-radius: 100px;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-toggle-line {
  transform-origin: 12px 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* Im "Tablet"-Bereich zeigt das Original ein schlichtes Icon ohne Kreis */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav-toggle {
    width: 33px;
    height: 33px;
    background: transparent;
    border: none;
    border-radius: 3px;
    padding: 0.3rem;
  }

  .nav-toggle svg {
    width: 24px;
    height: 24px;
  }
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--nav-link);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #fff;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.6rem 0;
  }
}

/* Hero */

.hero-image {
  margin: 1.5rem 0 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.portrait-wrap {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.portrait {
  display: inline-block;
  width: 225px;
  height: auto;
  border-radius: 2px;
}

/* Main content */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

main > hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 2rem;
}

.text-center {
  text-align: center;
}

h1,
h2 {
  color: var(--heading);
  font-weight: 500;
  font-size: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.35;
}

/* Auf der Startseite ist nur der ganz oben stehende Haupttitel schwarz statt blau */
h1.heading-black {
  color: #000;
}

/* Echte Unterüberschriften innerhalb einer Seite (z. B. im Impressum) sind
   kleiner, linksbündig und schwarz statt der großen zentrierten Seitentitel */
.subheading {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

.contact-block {
  margin: 2rem 0;
  text-align: center;
}

.contact-block p {
  margin: 0.25rem 0;
}

.address-block {
  margin: 2rem 0;
  text-align: center;
}

.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.5rem 0 2rem;
}

.btn:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

/* Contact form */

.contact-form {
  margin: 1.5rem 0;
}

.form-row {
  margin-bottom: 1rem;
}

/* Feldbeschriftungen sind wie im Original nur für Screenreader da –
   sichtbar ist stattdessen der Platzhaltertext im Feld selbst */
.sr-only-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border: 1px solid #c9c3b3;
  border-radius: 3px;
  background: #fff;
}

.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid {
  border-color: #d9534f;
  background: #fdf2f2;
}

.contact-form.was-validated input[type="checkbox"]:invalid {
  outline: 2px solid #d9534f;
  outline-offset: 2px;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.form-row.checkbox input {
  margin-top: 0.3rem;
}

.form-row.checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
}

.captcha-row .captcha-question {
  display: block;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.captcha-row input {
  width: 100%;
}

.form-submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--blue);
  color: #fff;
  border: none;
  text-align: center;
  padding: 0.9rem 1.8rem;
  font: inherit;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin: 0.5rem 0;
}

.form-submit:hover {
  background: var(--blue-dark);
}

.form-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-note.success {
  background: #e4f3e4;
  border: 1px solid #a9d3a9;
}

.form-note.error {
  background: #fbe6e6;
  border: 1px solid #e3a9a9;
}

/* Map */

.map-container {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Footer */

.site-footer {
  background: var(--blue);
  color: var(--nav-link);
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

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

.site-footer .footer-links {
  margin-top: 0.5rem;
}

.site-footer .footer-links a {
  margin: 0 0.5rem;
}

/* Zustimmung verwalten (Cookie-Banner) */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #24313e;
  color: #f2f2f2;
  padding: 1.25rem 1.5rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 420px;
}

.cookie-banner a {
  color: #9ecdf2;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.cookie-banner-buttons button {
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-consent-accept {
  background: var(--blue);
  color: #fff;
}

.btn-consent-accept:hover {
  background: var(--blue-dark);
}

.btn-consent-decline {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.btn-consent-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Kleiner Merker-Button unten rechts, sobald eine Wahl getroffen wurde */

.consent-pill {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  background: #24313e;
  color: #f2f2f2;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.consent-pill:hover {
  background: #1a242e;
}

.consent-pill[hidden] {
  display: none;
}

/* Overlays, die Karte und Kontaktformular blockieren, bis zugestimmt wurde */

.map-wrap,
.form-wrap {
  position: relative;
}

.consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(253, 246, 234, 0.97);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.consent-overlay[hidden] {
  display: none;
}

.consent-overlay p {
  margin: 0;
  max-width: 32rem;
}

.btn-consent-open {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-consent-open:hover {
  background: var(--blue-dark);
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

fieldset:disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .site-title {
    font-size: 1.5rem;
  }

  h1,
  h2 {
    font-size: 1.5rem;
  }
}
