@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  --ink: #292b3a;
  --blue: #152b4c;
  --muted: #5f6270;
  --accent: #e83d4c;
  --page: #fff;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Roboto, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  min-height: 76px;
  padding: 16px clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max);
  margin: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #35445c;
  flex-shrink: 0;
  width: 210px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-pin {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
  position: relative;
}

.brand-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  left: 10px;
  top: 8px;
}

.brand-wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.35px;
  line-height: 1.1;
}

.brand-wordmark small {
  display: block;
  margin-top: 3px;
  font-size: 5px;
  letter-spacing: 1px;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.main-nav > a:not(.button) {
  text-decoration: none;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

.main-nav > a.active:not(.button),
.main-nav > a:hover:not(.button) {
  border-color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid transparent;
}

.button-dark {
  background: var(--ink);
  color: #fff;
  min-width: 138px;
}

.button-outline {
  border-color: #777987;
}

/* Hamburger-Schaltfläche: auf großen Bildschirmen ausgeblendet */
.menu-toggle {
  display: none;
  color: #000;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.hero-title {
  text-align: center;
  padding: 76px 20px 80px;
}

.hero-title h1 {
  color: var(--blue);
  font-weight: 300;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.8;
  margin: 0;
}

.hero-title h1 span {
  display: inline-block;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}

/* Startseitenbild: bleibt auf Desktop innerhalb der linken Grid-Spalte */
.intro-image {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.intro-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #e8e8e8;
  color: #555;
  text-align: center;
}

.intro-copy {
  align-self: center;
  min-width: 0;
  max-width: 520px;
  padding: 40px 0;
  color: #555b6a;
  font-size: 16px;
}

.intro-copy h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 300;
  color: #45495a;
  margin: 0 0 28px;
}

.intro-copy p {
  margin: 0 0 16px;
}

.capabilities {
  max-width: 980px;
  margin: 70px auto 58px;
  padding: 0 20px 38px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  text-align: center;
}

.carousel-content h2 {
  font-size: 17px;
  font-weight: 300;
  margin: 0 0 10px;
}

.carousel-content p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
  color: #626575;
}

.carousel-arrow {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
}

.carousel-dots {
  grid-column: 2;
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 28px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d4d4d8;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--ink);
}

.marketing-banner {
  min-height: 310px;
  background: #383838;
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

.marketing-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#0008, #0008), url('../images/marketing-banner.png') center/cover no-repeat;
}

.banner-overlay {
  position: relative;
  z-index: 1;
  padding: 44px 24px;
  max-width: 1000px;
}

.banner-overlay h2 {
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 12px;
}

.banner-overlay p {
  font-size: 14px;
  margin: 2px 0;
}

.site-footer {
  padding: 62px 20px 34px;
  text-align: center;
  font-size: 14px;
  color: #505363;
}

.footer-brand {
  margin-bottom: 34px;
  width: 260px;
}

.site-footer address {
  font-style: normal;
}

.site-footer p {
  margin: 18px 0;
}

.site-footer a {
  text-decoration: none;
}

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

.legal-details {
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 32px 0;
  font-weight: 700;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.legal-nav a:not(.button),
.legal-nav button {
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.content-page {
  width: min(900px, calc(100% - 40px));
  margin: 70px auto 100px;
  min-height: 48vh;
}

.content-page h1 {
  color: var(--blue);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
}

.contact-page form {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
}

.contact-page input:not([type=checkbox]),
.contact-page textarea {
  width: 100%;
  border: 1px solid #d0d1d8;
  border-radius: 4px;
  padding: 12px;
  font: inherit;
}

.contact-page textarea {
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  padding: 12px;
  border-radius: 4px;
}

.success {
  background: #e8f5ec;
}

.error {
  background: #fff0f0;
}

.editor-note {
  color: #777;
  font-size: 12px;
}

/* Tablet und Smartphone */
@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    width: 130px;
  }

  .brand img {
    max-width: 100%;
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    font-size: 0;
    position: relative;
  }

  .menu-toggle::before {
    content: "";
    display: block;
    width: 24px;
    height: 18px;
    background: linear-gradient(
      to bottom,
      #000 0 3px,
      transparent 3px 7px,
      #000 7px 10px,
      transparent 10px 14px,
      #000 14px 17px
    );
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 0 14px;
  }

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

  .main-nav > a:not(.button) {
    padding: 8px 0;
  }

  .main-nav .button {
    align-self: flex-start;
  }

  .hero-title {
    padding: 42px 20px 52px;
  }

  .hero-title h1 {
    font-size: 25px;
    line-height: 1.5;
  }

  .split-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  /* Das Bild geht auf dem Smartphone von Rand zu Rand. */
  .intro-image {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    margin: 0;
  }

  .intro-image img {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .intro-copy {
    padding: 42px 24px 52px;
    max-width: 620px;
    align-self: stretch;
  }

  .intro-copy h2 {
    margin-bottom: 30px;
  }

  .capabilities {
    margin: 35px auto 30px;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }

  .carousel-content p {
    font-size: 13px;
  }

  .marketing-banner {
    min-height: 300px;
  }

  .banner-overlay p {
    font-size: 13px;
  }

  .desktop-only {
    display: none;
  }

  .site-footer {
    padding-top: 48px;
  }

  .legal-nav {
    gap: 14px;
  }

  .content-page {
    width: calc(100% - 32px);
    margin: 40px auto 64px;
  }

  .contact-page form {
    max-width: 100%;
  }
}

/* Kleine Smartphones */
@media (max-width: 380px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    width: 118px;
  }

  .hero-title h1 {
    font-size: 22px;
  }

  .intro-copy {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Leistungsseite */
.services-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
}

.service-group {
  margin: 48px 0;
}

.service-group > h2 {
  color: var(--blue);
  font-size: 27px;
  font-weight: 300;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e2e6;
}

.service-item {
  padding: 16px 0;
}

.service-item h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 400;
  margin: 0 0 8px;
}

.service-item p {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
}

.services-contact {
  margin-top: 64px;
  padding: 32px;
  background: #f5f6f8;
}

.services-contact h2 {
  font-weight: 300;
  color: var(--blue);
}

@media (max-width: 760px) {
  .services-intro {
    font-size: 16px;
  }

  .service-group {
    margin: 36px 0;
  }

  .services-contact {
    padding: 24px 18px;
  }
}


/* Leistungsseite mit Bildern */
.services-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
}

.service-group {
  margin: 52px 0;
}

.service-group > h2 {
  color: var(--blue);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e2e6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.service-card {
  min-width: 0;
  overflow: hidden;
}

.service-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.service-card-copy {
  padding: 18px 0 8px;
}

.service-card h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.services-contact {
  margin-top: 64px;
  padding: 32px;
  background: #f5f6f8;
}

.services-contact h2 {
  font-weight: 300;
  color: var(--blue);
}

@media (max-width: 760px) {
  .services-intro {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .service-group {
    margin: 36px 0;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .service-card > img {
    aspect-ratio: 16 / 9;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .services-contact {
    padding: 24px 18px;
  }
}


/* Partnerseite */
.partner-page {
  width: min(1100px, calc(100% - 40px));
}

.partner-intro {
  margin-bottom: 44px;
  color: var(--muted);
}

.partner-list {
  display: flex;
  flex-direction: column;
}

.partner-item {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 42px 0;
  border-bottom: 1px solid #e0e1e8;
}

/* Einheitliche Bildfläche für alle Partnerlogos */
.partner-logo {
  width: 100%;
  height: 180px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 320px;
  object-fit: contain;
  object-position: center;
}

.partner-details h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.partner-details p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 760px) {
  .partner-page {
    width: calc(100% - 32px);
  }

  .partner-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0;
  }

  .partner-logo {
    height: 180px;
  }

  .partner-logo img {
    width: 100%;
    height: 100%;
    max-width: 320px;
    object-fit: contain;
    object-position: center;
  }

  .partner-details h2 {
    font-size: 22px;
  }

  .partner-details p {
    font-size: 16px;
  }
}


/* Kontaktseite */
.contact-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.contact-hero-image {
  width: 100%;
  margin: 24px 0 40px;
  overflow: hidden;
  border-radius: 12px;
}

.contact-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-form-section,
.contact-booking-section,
.contact-location-section {
  margin-top: 56px;
}

.contact-form-section form {
  max-width: 720px;
}

.contact-form-section form > label:not(.consent) {
  display: block;
  margin: 18px 0 8px;
}

.contact-form-section input:not([type="checkbox"]),
.contact-form-section textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

.contact-form-section textarea {
  resize: vertical;
}

.contact-form-section .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.contact-form-section .consent input {
  margin-top: 5px;
}

.calendly-embed {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
}

.map-embed {
  width: 100%;
  height: 420px;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 12px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .contact-hero-image {
    margin: 20px 0 30px;
    border-radius: 8px;
  }

  .contact-form-section,
  .contact-booking-section,
  .contact-location-section {
    margin-top: 40px;
  }

  .calendly-inline-widget {
    min-width: 0 !important;
    height: 700px !important;
  }

  .map-embed {
    height: 320px;
  }
}

/* Datenschutzerklärung und rechtliche Seiten */
.legal-page {
  width: calc(100% - 40px);
  max-width: 860px;
  margin: 48px auto 64px;
  padding: 32px 36px;
  box-sizing: border-box;
  text-align: left;
  line-height: 1.75;
}

/* Überschrift der Seite */
.legal-page h1 {
  margin: 0 0 24px;
  line-height: 1.2;
}

/* Abschnittsüberschriften */
.legal-page h2 {
  margin: 36px 0 12px;
  line-height: 1.35;
}

/* Fließtext und Absätze */
.legal-page p {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

/* Links innerhalb der rechtlichen Seiten */
.legal-page a {
  overflow-wrap: anywhere;
}

/* Smartphone und kleine Tablets */
@media (max-width: 600px) {
  .legal-page {
    width: calc(100% - 28px);
    margin: 24px auto 40px;
    padding: 22px 20px;
    line-height: 1.7;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }

  .legal-page h2 {
    margin-top: 28px;
    font-size: 1.2rem;
  }
}


/* Datenschutzerklärung und rechtliche Seiten */
.legal-page {
  width: calc(100% - 40px);
  max-width: 860px;
  margin: 48px auto 64px;
  padding: 32px 36px;
  box-sizing: border-box;
  text-align: left;
  line-height: 1.75;
}

/* Überschrift der Seite */
.legal-page h1 {
  margin: 0 0 24px;
  line-height: 1.2;
}

/* Abschnittsüberschriften */
.legal-page h2 {
  margin: 36px 0 12px;
  line-height: 1.35;
}

/* Fließtext und Absätze */
.legal-page p {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

/* Links innerhalb der rechtlichen Seiten */
.legal-page a {
  overflow-wrap: anywhere;
}

/* Smartphone und kleine Tablets */
@media (max-width: 600px) {
  .legal-page {
    width: calc(100% - 28px);
    margin: 24px auto 40px;
    padding: 22px 20px;
    line-height: 1.7;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }

  .legal-page h2 {
    margin-top: 28px;
    font-size: 1.2rem;
  }
}

/* Kontaktseite: mobile Layout- und Einwilligungs-Fixes */
.contact-form-section h2,
.contact-booking-section h2,
.contact-location-section h2 {
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-form-section .consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-form-section .consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
}

.contact-form-section .consent span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.external-media-placeholder {
  padding: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.calendly-inline-widget {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 700px;
}

.map-embed {
  position: relative;
  height: 420px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

[data-consent-banner] button,
[data-consent-settings] {
  min-height: 42px;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 760px) {
  .contact-form-section,
  .contact-booking-section,
  .contact-location-section {
    margin-top: 32px;
  }

  .contact-form-section h2,
  .contact-booking-section h2,
  .contact-location-section h2 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .contact-form-section .consent {
    gap: 8px;
    font-size: 0.95rem;
  }

  .calendly-inline-widget {
    height: 720px;
    min-height: 720px;
  }

  .map-embed {
    height: 320px;
  }
}
