/* =============================================
   SVB Kurze – Stylesheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0D2340;
  --color-primary-dark: #081729;
  --color-accent: #B89B6B;
  --color-text: #0D2340;
  --color-text-muted: #5a6578;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f8;
  --color-border: #dde0e6;
  --color-success: #1d7d42;
  --color-error: #c0392b;

  --font-family: 'Montserrat', Aptos, Arial, sans-serif;
  --font-family-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-size-base: 1rem;
  --line-height: 1.7;

  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);

  --container-width: 1180px;
  --section-gap: 5rem;
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero__title,
.section__title {
  font-family: var(--font-family-heading);
  font-weight: 700;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(61, 184, 202, .35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.btn--full {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

/* Zeile 1 */
.header__topbar {
  border-bottom: 1px solid var(--color-border);
}

.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  gap: 1.5rem;
}

/* Kontaktdaten */
.header__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.header__contact-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.header__contact-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.header__cta {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header__cta:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Zeile 2 */
.header__navbar {
  border-bottom: 1px solid var(--color-border);
}

.header__navbar>.container {
  display: flex;
  align-items: center;
  height: 2.75rem;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__img {
  height: 80px;
  width: auto;
  display: block;
}

.logo__img--footer {
  filter: brightness(0) invert(1);
  opacity: .9;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__link {
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.nav__link--cta {
  background: var(--color-primary);
  color: #fff;
  padding: .4rem 1rem;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  border-radius: var(--radius);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(13, 35, 64, 0.45), rgba(13, 35, 64, 0.45)),
    url("../img/hero_immobiliensachverstaendige_bankberatung.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .2);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero__title--accent {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-gap);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ---------- Cards Carousel ---------- */
.carousel__viewport {
  overflow: hidden;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  background-color: #c0c8d0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card:nth-child(1) .card__image {
  background-image: url("../img/immobilienbewertung_K.webp");
}

.card:nth-child(2) .card__image {
  background-image: url("../img/restnutzungsdauer_gutachten_K.webp");
}

.card:nth-child(3) .card__image {
  background-image: url("../img/bauwerksabdichtung_K.webp");
}

.card:nth-child(4) .card__image {
  background-image: url("../img/bankberatung_finanzierungsbegleitung_K.webp");
}

.card:nth-child(5) .card__image {
  background-image: url("../img/schimmel_feuchtigkeit_gebaeudeschadenanalyse_K.webp");
}

.card:nth-child(6) .card__image {
  background-image: url("../img/sanierungsprojekte_K.webp");
}


.card__body {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.4rem 1.4rem 1.5rem;
  flex: 1;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card__text {
  font-size: .875rem;
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  margin-top: .5rem;
  align-self: flex-start;
  border-radius: 2px;
  overflow: hidden;
  font-size: .85rem;
  font-weight: 500;
}

.card__link span:first-child {
  background: var(--color-primary);
  color: #fff;
  padding: .6rem 1.1rem;
}

.card__link:hover span:first-child {
  background: var(--color-primary-dark);
}


.cards-carousel {
  position: relative;
}

.carousel__btn {
  position: absolute;
  top: calc(50% - 1.5rem);
  /* oberhalb der dots-nav zentriert auf Karten */
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.carousel__btn--prev {
  left: -1.25rem;
}

.carousel__btn--next {
  right: -1.25rem;
}

.carousel__btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.carousel__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.carousel__dots {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.carousel__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}

.carousel__dot.is-active {
  background: var(--color-primary);
  width: 1.5rem;
  border-radius: 3px;
}

/* ---------- Layout Split ---------- */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.layout-split--reverse .layout-split__text {
  order: 2;
}

.layout-split--reverse .layout-split__visual {
  order: 1;
}

.layout-split__text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.layout-split__text .section__title {
  margin-bottom: 1.25rem;
}

.checklist {
  margin-block: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--color-text);
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8l4 4 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8l4 4 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Visual placeholder boxes */
.layout-split__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cert-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.cert-icon {
  color: var(--color-accent);
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
}

.cert-item h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.cert-item p {
  font-size: .85rem;
  color: var(--color-text-muted);
}

.team-member {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.team-member__image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background: #9098a8;
  overflow: hidden;
}

.team-member__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.team-member__quals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.team-member__quals li {
  font-size: .9rem;
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.team-member__quals li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ---------- Standorte ---------- */
.standorte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 1.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.standort-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
}

.standort-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.standort-card__icon svg {
  width: 100%;
  height: 100%;
}

.standort-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.standort-card address {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.einsatzgebiete {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.einsatzgebiete__intro {
  font-size: .95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.einsatzgebiete__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.einsatzgebiete__item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: .45rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- Kontakt ---------- */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.kontakt-item__icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  padding: .45rem;
}

.kontakt-item__icon svg {
  width: 100%;
  height: 100%;
}

.kontakt-item__label {
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .1rem;
}

.kontakt-item__value {
  font-size: .95rem;
  color: var(--color-text);
  word-break: break-word;
}

a.kontakt-item__value {
  color: var(--color-primary);
  font-weight: 500;
}

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

/* Form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-family: var(--font-family);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61, 184, 202, .15);
  outline: none;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: var(--color-error);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: .65rem;
  flex-wrap: wrap;
}

.form-group--checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: .2rem;
  accent-color: var(--color-primary);
}

.form-group--checkbox label {
  font-size: .875rem;
  flex: 1;
}

.form-group--checkbox .form-error {
  flex-basis: 100%;
}

.form-error {
  font-size: .8rem;
  color: var(--color-error);
  min-height: 1em;
  display: block;
}

.form-success {
  background: #eafaf1;
  border: 1px solid #a3e4b8;
  color: var(--color-success);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .9rem;
}

.form-success--error {
  background: #fdecea;
  border-color: #f3b6b0;
  color: var(--color-error);
}

.form-success--error a {
  color: inherit;
}

/* Honeypot: für Menschen unsichtbar, nur Bots füllen es aus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Impressum / Datenschutz ---------- */
.legal-page {
  padding-block: 4rem 5rem;
  min-height: 70vh;
}

.legal-page__header {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-page__header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-block: .6rem .4rem;
  color: var(--color-text);
}

.legal-page__header p {
  font-size: .95rem;
  color: var(--color-text-muted);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.legal-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-content section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-bg-alt);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: .75rem;
  line-height: 1.8;
}

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

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: .75rem;
}

.legal-content ul li {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-primary-dark);
}

.legal-warning {
  background: rgba(192, 57, 43, .07);
  border: 1px solid rgba(192, 57, 43, .25);
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.legal-warning p {
  color: var(--color-text);
  margin-bottom: .5rem;
}

.legal-warning p:last-child {
  margin-bottom: 0;
}

.legal-date {
  font-size: .82rem;
  color: var(--color-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .legal-page {
    padding-block: 2.5rem 3.5rem;
  }

  .legal-content {
    gap: 2rem;
  }
}

/* ---------- Google Maps ---------- */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 820px;
  margin-inline: auto;
}

.map-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.map-card__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  line-height: 1.4;
}

.map-card__label svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.map-card__frame {
  position: relative;
  width: 100%;
  height: 460px;
  background: var(--color-bg-alt);
}

.map-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__link {
  display: block;
  padding: .7rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  text-align: right;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.map-card__link:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
  color: var(--color-primary-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: #0d1f3c;
  color: rgba(255, 255, 255, .75);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 3rem;
  padding-block: 3.5rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.footer__logo .logo__img--footer {
  width: 120px;
  height: auto;
}

.footer__signature {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.footer__name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.footer__company {
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  line-height: 1.4;
}

.footer__tagline {
  font-size: .825rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: .65rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .875rem;
  line-height: 1.5;
}

.footer__contact a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__links h2 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__warning {
  margin-top: 1.25rem;
  font-size: .8rem;
  background: rgba(192, 57, 43, .2);
  border: 1px solid rgba(192, 57, 43, .4);
  border-radius: var(--radius);
  padding: .75rem;
  color: #f5b7b1;
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer__bottom p {
  font-size: .8rem;
}

.footer__bottom nav {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom nav a {
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__bottom nav a:hover {
  color: #fff;
}

/* ---------- Cookie Banner ---------- */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  z-index: 999;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .1);
  border: 1px solid var(--color-border);
  overflow: hidden;
  /* Einblend-Animation */
  animation: cookieSlideUp .35s ease both;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cookie-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .45rem;
}

.cookie-banner__desc {
  font-size: .835rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex-shrink: 0;
  min-width: 160px;
}

.cookie-btn {
  padding: .6rem 1rem;
  font-size: .85rem;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

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

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

.cookie-btn--secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
}

.cookie-btn--secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}

.cookie-btn--settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cookie-btn--settings:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
  color: var(--color-primary-dark);
}

/* Erweiterte Einstellungen */
.cookie-settings {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.cookie-settings__inner {
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cookie-toggle-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}

.cookie-toggle-info strong {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
}

.cookie-toggle-info span {
  font-size: .8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  cursor: pointer;
}

.cookie-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__knob {
  position: absolute;
  inset: 0;
  background: #c8d0dc;
  border-radius: 2rem;
  transition: background var(--transition);
}

.cookie-toggle__knob::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform var(--transition);
}

.cookie-toggle__input:checked+.cookie-toggle__knob {
  background: var(--color-primary);
}

.cookie-toggle__input:checked+.cookie-toggle__knob::after {
  transform: translateX(1.25rem);
}

.cookie-toggle__input:focus-visible+.cookie-toggle__knob {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Immer-an Toggle (deaktiviert, grün gelockt) */
.cookie-toggle--disabled .cookie-toggle__knob {
  background: #27ae60;
  cursor: not-allowed;
}

.cookie-toggle--disabled .cookie-toggle__knob::after {
  transform: translateX(1.25rem);
}

.cookie-settings__save {
  display: flex;
  justify-content: flex-end;
}

/* Einstellungen öffnen-Schaltfläche im Footer */
.cookie-reopen-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 90;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .45rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
}

.cookie-reopen-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---------- Map Consent Overlay ---------- */
.map-card__frame {
  position: relative;
}

.map-consent-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.5rem;
  text-align: center;
}

.map-consent-overlay p {
  font-size: .85rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.map-consent-overlay .btn {
  padding: .6rem 1.25rem;
  font-size: .875rem;
}

.map-consent-link {
  font-size: .78rem;
  color: var(--color-primary);
  text-decoration: underline;
}

/* Overlay ausblenden wenn geladen */
.map-consent-overlay.is-loaded {
  display: none;
}

/* Responsive Cookie Banner */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  @keyframes cookieSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .cookie-banner__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .cookie-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-settings__inner {
    padding: 1rem 1.25rem 1.25rem;
  }

  .cookie-reopen-btn {
    bottom: .75rem;
    left: .75rem;
  }
}

/* ==============================================
   RESPONSIVE DESIGN
   Breakpoints:
     1200px  — Tablet Landscape / kleiner Desktop
      1024px  — Tablet
       768px  — Tablet Portrait / großes Handy
       480px  — Smartphone
       360px  — Kleinstes Smartphone
   ============================================== */

/* ---- 1200px: Container enger, Abstände kleiner ---- */
@media (max-width: 1200px) {
  :root {
    --section-gap: 4.5rem;
  }

}

/* ---- 1024px: Tablet ---- */
@media (max-width: 1024px) {
  :root {
    --section-gap: 4rem;
  }

  /* Layout-Splits: einspaltig */
  .layout-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .layout-split--reverse .layout-split__text {
    order: 1;
  }

  .layout-split--reverse .layout-split__visual {
    order: 2;
  }

  /* Über uns */
  .team-member {
    flex-direction: column;
    gap: 1.5rem;
  }

  .team-member__image {
    width: 140px;
    height: 140px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Kontakt */
  .kontakt-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .kontakt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Cards: 2 sichtbar auf Tablet */
  .card {
    flex: 0 0 calc(50% - 0.5rem);
  }

  /* Maps: einspaltig auf Tablet */
  .maps-grid {
    grid-template-columns: 1fr;
  }

  .map-card__frame {
    height: 360px;
  }
}

/* ---- 768px: Tablet Portrait / großes Handy ---- */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
    --font-size-base: 0.9375rem;
    /* 15px */
  }

  /* Container etwas enger */
  .container {
    padding-inline: 1.1rem;
  }

  /* ---- Header / Nav ---- */
  .header__topbar-inner {
    display: grid;
    grid-template-areas: "space logo burger" "contact contact contact";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-block: .5rem .4rem;
    gap: .4rem .5rem;
    height: auto;
  }

  .header__logo {
    grid-area: logo;
  }

  .logo__img {
    height: 44px;
  }

  .burger {
    grid-area: burger;
    justify-self: end;
  }

  .header__contact {
    grid-area: contact;
    justify-content: center;
    gap: .75rem;
    padding-bottom: .2rem;
    margin-left: 0;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: .75rem 1.1rem 1rem;
  }

  .header__navbar.is-open {
    display: block;
  }

  .header__navbar>.container {
    height: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .nav__link {
    padding: .75rem .9rem;
    font-size: .95rem;
    border-radius: var(--radius);
  }

  /* ---- Hero ---- */
  .hero {
    min-height: 80vh;
    /* Hochformat schneidet die Bildseiten weg (cover). Ohne Verschiebung
       landet der Ausschnitt auf Fensterrahmen + Schreibtisch, das Haus liegt
       rechts außerhalb. 78 % rückt das Haus in den sichtbaren Bereich. */
    background-position: 78% center;
  }

  .hero__content {
    padding-block: 4rem 3rem;
  }

  /* "Immobiliensachverständige" ist zu lang für schmale Displays und wurde
     von .hero { overflow: hidden } abgeschnitten. hyphens: auto (lang="de")
     trennt sauber; overflow-wrap ist der Fallback, falls keine Trennmuster
     verfügbar sind. Beides zusammen garantiert: kein Abschneiden mehr. */
  .hero__title {
    font-size: clamp(1.75rem, 6.4vw, 2.6rem);
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    gap: .75rem;
  }

  .hero__trust {
    gap: 1rem;
  }

  /* ---- Sektionsheader ---- */
  .section__header {
    margin-bottom: 2.5rem;
  }

  .section__subtitle {
    font-size: .95rem;
  }

  /* ---- Cards: 1 sichtbar auf Handy ---- */
  .cards {
    gap: 1rem;
  }

  .card {
    flex: 0 0 100%;
  }

  .card__body {
    padding: 1.1rem 1.1rem 1.25rem;
  }

  /* ---- Zertifikate ---- */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* ---- Standorte ---- */
  .standorte-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
    max-width: 100%;
    gap: 1rem;
  }

  .standort-card {
    padding: 1.5rem 1.25rem;
  }

  /* ---- Kontakt: Info-Grid zurück auf 1 Spalte ---- */
  .kontakt-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ---- Formular: Name + E-Mail einspaltig ---- */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ---- Footer ---- */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem;
  }

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__logo .logo__img--footer {
    width: 96px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: .6rem;
  }

  .footer__bottom nav {
    justify-content: center;
  }
}

/* ---- 480px: Smartphone ---- */
@media (max-width: 480px) {
  :root {
    --section-gap: 2.5rem;
  }

  /* Container */
  .container {
    padding-inline: 1rem;
  }

  /* ---- Hero ---- */
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-block: 3.5rem 2.5rem;
  }

  .hero__badge {
    font-size: .72rem;
  }

  .hero__subtitle {
    font-size: .95rem;
  }

  /* Buttons untereinander */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Trust-Items untereinander */
  .hero__trust {
    flex-direction: column;
    gap: .4rem;
  }

  /* ---- Buttons generell größer für Touch ---- */
  .btn {
    padding: .85rem 1.5rem;
    font-size: .95rem;
  }

  /* ---- Cards: weiterhin 1 sichtbar ---- */
  .card {
    flex: 0 0 100%;
  }

  /* ---- Zertifikate: 1 Spalte ---- */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Standorte: 1 Spalte ---- */
  .standorte-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* ---- Section-Header ---- */
  .section__header {
    margin-bottom: 2rem;
  }

  /* ---- Kontakt-Formular ---- */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;
    /* verhindert iOS-Zoom beim Fokus */
    padding: .7rem .85rem;
  }

  /* ---- Maps ---- */
  .map-card__frame {
    height: 300px;
  }

  /* ---- Footer ---- */
  .footer__inner {
    padding-block: 2rem;
    gap: 1.75rem;
  }
}

/* ---------- Mobile Floating Action Buttons ---------- */
.mobile-fab {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fab {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 900;
  }

  .mobile-fab__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition), transform var(--transition);
  }

  .mobile-fab__btn:hover,
  .mobile-fab__btn:focus-visible {
    background: var(--color-primary-dark);
    transform: scale(1.08);
    outline: none;
  }
}

/* ---- 360px: Kleinstes Smartphone ---- */
@media (max-width: 360px) {
  :root {
    --font-size-base: 0.875rem;
  }

  /* 14px */

  .container {
    padding-inline: .75rem;
  }

  /* KEINE feste Höhe setzen! Ab 768px ist .header__topbar-inner ein
     zweizeiliges Grid (Zeile 1: Logo + Burger, Zeile 2: Kontaktdaten).
     Eine feste Höhe reicht nur für Zeile 1 — die Kontaktzeile fällt dann
     aus dem weißen Header heraus und liegt über dem Hero-Bild. */
  .header__topbar-inner {
    height: auto;
  }

  /* Telefon + Mail sollen bei 360px in eine Zeile passen */
  .header__contact {
    gap: .6rem;
  }

  .header__contact-link {
    font-size: .8rem;
  }

  /* Kleiner als die 768px-Regel — vorher stand hier eine größere Untergrenze
     (1.9rem), wodurch die schmalsten Displays die größte Schrift bekamen. */
  .hero__title {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
  }

  .btn {
    padding: .75rem 1.25rem;
    font-size: .9rem;
  }

  .card__body {
    padding: 1rem;
  }
}