/* ==================================================
   FLIESEN SMILJANIC & SCHUHMACHER GMBH
   TYPO3 13.4.4 | BEREINIGTE STYLE.CSS
   ================================================== */

/* ==================================================
   01. GRUNDLAGEN
   ================================================== */

:root {
  --color-primary: #17365d;
  --color-accent: #0066b3;
  --color-text: #243247;
  --color-muted: #526174;
  --color-white: #ffffff;
  --color-border: #eeeeee;
  --color-intro-label: #d5e5f5;
  --color-intro-text: #edf3f9;
  --color-image-light: #dbe5ee;
  --color-image-dark: #b5c8d9;
  --font-family: Arial, sans-serif;
  --container-width: 1200px;
  --header-width: 1400px;
  --shadow-header: 0 3px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.10);
  --transition-default: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-text);
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
}

.site-footer {
  width: 100%;
  background: #17365d;
  color: #ffffff;
}

/* ==================================================
   02. HEADER UND NAVIGATION
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--header-width);
  margin: 0 auto;
  padding: 20px 5%;
}

.logo {
  display: block;
  flex-shrink: 1;
  min-width: 0;
}

.logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color var(--transition-default);
}

.navigation a:hover {
  color: var(--color-accent);
}

.navigation a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
}

.menu-toggle {
  display: none;
}

/* ==================================================
   03. STARTBILD (HERO)
   ================================================== */

.hero {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 90px 24px;
  background-image: linear-gradient(
      90deg,
      rgba(10, 30, 55, 0.80),
      rgba(10, 30, 55, 0.20)
    ),
    url("/fileadmin/02_Startseite/Badezimmer.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--color-intro-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.hero h1 {
  margin: 0 0 25px;
  color: var(--color-white);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
}

.hero p {
  max-width: 900px;
  margin: 0;
  color: var(--color-white);
  font-size: 20px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition-default),
    color var(--transition-default),
    border-color var(--transition-default),
    transform var(--transition-default);
}

.hero-button-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.hero-button-primary:hover {
  background: var(--color-intro-label);
  transform: translateY(-2px);
}

.hero-button-outline {
  border-color: var(--color-white);
  background: transparent;
  color: var(--color-white);
}

.hero-button-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.hero-button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ==================================================
   04. UNTERNEHMENSBEREICH
   ================================================== */

.intro-section {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: -55px auto 0;
  padding: 0 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.intro-text {
  padding: 45px 40px;
  background: var(--color-primary);
  color: var(--color-white);
}

.section-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.intro-text .section-eyebrow {
  color: var(--color-intro-label);
}

.intro-text h2 {
  margin: 0 0 20px;
  font-size: 31px;
  line-height: 1.25;
}

.intro-text p {
  margin: 0;
  color: var(--color-intro-text);
  font-size: 16px;
  line-height: 1.8;
}

.services-section .section-eyebrow {
  color: var(--color-accent);
}

.references-heading .section-eyebrow {
  color: var(--color-accent);
}

.contact-panel .section-eyebrow {
  color: #bcd8f0;
  font-size: 12px;
}

.faq-panel .section-eyebrow {
  color: var(--color-accent);
  font-size: 13px;
}

/* ==================================================
   05. VORTEILE
   ================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 185px;
  padding: 28px 18px;
  text-align: center;
}

.benefit:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.benefit:nth-child(-n/**/+2) {
  border-bottom: 1px solid var(--color-border);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  color: var(--color-primary);
}

.benefit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-number {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 700;
}

.benefit h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 19px;
  line-height: 1.35;
}

/* ==================================================
   06. LEISTUNGEN
   ================================================== */

.services-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 100px 24px 0px;
}

.services-section h2 {
  margin: 0 0 35px;
  color: var(--color-primary);
  font-size: 38px;
  line-height: 1.2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.service-card {
  min-width: 0;
}

.service-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--color-image-light),
    var(--color-image-dark)
  );
  color: var(--color-primary);
  font-size: 15px;
  text-align: center;
}

.service-card h3 {
  margin: 18px 0 10px;
  color: var(--color-primary);
  font-size: 21px;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==================================================
   07. REFERENZEN
   ================================================== */

.references-section {
  width: 100%;
  padding: 100px 0 0;
  background: #ffffff;
}

.references-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 45px;
}

.references-heading {
  max-width: 750px;
}

.references-heading h2 {
  margin: 0 0 15px;
  color: var(--color-primary);
  font-size: 38px;
  line-height: 1.2;
}

.references-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
}

.references-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.references-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.references-arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.references-arrow:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.references-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.references-arrow:disabled:hover {
  background: #ffffff;
  color: var(--color-primary);
}

.references-carousel {
  width: 100%;
  overflow: hidden;
}

.references-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.references-track::-webkit-scrollbar {
  display: none;
}

.reference-card {
  position: relative;
  flex: 0 0 25%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--color-primary);
}

.reference-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.reference-card:hover img {
  transform: scale(1.05);
}

.reference-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #dbe5ee,
    #b5c8d9
  );
  color: #17365d;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.reference-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 48, 0.85) 0%,
    rgba(10, 25, 48, 0.25) 42%,
    rgba(10, 25, 48, 0) 75%
  );
  pointer-events: none;
}

.reference-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 22px;
  color: #ffffff;
}

.reference-overlay h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.reference-overlay p {
  margin: 0;
  color: #e5edf5;
  font-size: 13px;
  line-height: 1.5;
}

/* ==================================================
   08. UEBER UNS
   ================================================== */

.about-section {
  padding: 100px 24px 0;
  background: #f7f9fc;
  scroll-margin-top: 90px;
}

.about-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
  align-items: center;
}

.about-content {
  min-width: 0;
}

.about-label {
  display: block;
  color: #376b9e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.about-content h2 {
  color: #17365d;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 16px;
}

.about-content p {
  color: #536477;
  font-size: 16px;
  line-height: 1.7;
  max-width: 570px;
  margin: 0 0 26px;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-stat strong {
  color: #17365d;
  font-size: 32px;
  font-weight: 800;
}

.about-stat span {
  color: #536477;
  font-size: 13px;
}

.about-image {
  height: 270px;
  overflow: hidden;
  border-radius: 10px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9edf2;
  border: 1px solid #dce3eb;
  border-radius: 10px;
}

.about-placeholder span {
  color: #7b8999;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ==================================================
   09. KONTAKT UND FAQ
   ================================================== */

.contact-faq-section {
  background: #f5f6f8;
  padding: 100px 24px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-panel {
  background: var(--color-primary);
  color: #ffffff;
  padding: 48px 42px;
}

.contact-panel h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.2;
}

.contact-intro {
  margin: 0 0 32px;
  color: #e3edf7;
  font-size: 15px;
  line-height: 1.7;
}

.faq-panel {
  padding: 35px 0;
}

.faq-panel h2 {
  margin: 0 0 18px;
  color: var(--color-primary);
  font-size: 36px;
  line-height: 1.2;
}

.faq-intro {
  margin: 0 0 30px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid #d9dee5;
}

.faq-item {
  border-bottom: 1px solid #d9dee5;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 16px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 23px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item[open] summary {
  background: #e9eef4;
}

.faq-answer {
  padding: 4px 16px 22px;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-contact-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.faq-contact-link:hover {
  text-decoration: underline;
}

.kontakt-daten {
  background: #19375d;
  color: #ffffff;
  padding: 48px 42px;
  border-radius: 4px;
  width: 100%;
}

.kontakt-daten h2 {
  color: #ffffff;
  font-size: 30px;
  margin: 0 0 20px;
}

.kontakt-daten p {
  color: #e3ebf5;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.kontakt-eintrag {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.kontakt-eintrag strong {
  color: #bcd5ef;
  font-size: 14px;
  font-weight: 600;
}

.kontakt-eintrag a {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.kontakt-eintrag a:hover {
  color: #8bc8ff;
  text-decoration: underline;
}

.kontakt-eintrag a:focus-visible {
  outline: 2px solid #8bc8ff;
  outline-offset: 4px;
}

/* ==================================================
   10. KONTAKTFORMULAR (FÃœR SPÃ„TERE NUTZUNG)
   ================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  margin-top: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b8c6d6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffffff;
}

.contact-form textarea {
  min-height: 125px;
  resize: vertical;
}

.contact-privacy {
  margin: 12px 0 0;
  color: #d8e4ef;
  font-size: 12px;
  line-height: 1.6;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 14px;
  padding: 14px 25px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
  background: #d5e5f5;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-note {
  margin: 0;
  color: #d5e5f5;
  font-size: 12px;
}

.contact-panel .contact-form form {
  width: 100%;
}

.contact-panel .contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.contact-panel .contact-form input,
.contact-panel .contact-form textarea,
.contact-panel .contact-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 13px 15px;
  background: #ffffff;
  color: #17365d;
  border: 1px solid #d7e0ea;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.contact-panel .contact-form input:focus,
.contact-panel .contact-form textarea:focus,
.contact-panel .contact-form select:focus {
  outline: 2px solid #80b9e5;
  outline-offset: 2px;
}

.contact-panel .contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-panel .contact-form button[type="submit"] {
  display: inline-block;
  padding: 14px 28px;
  background: #0066b3;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-panel .contact-form button[type="submit"]:hover {
  background: #00518f;
}

.contact-panel .contact-form .help-block,
.contact-panel .contact-form .invalid-feedback,
.contact-panel .contact-form .error {
  color: #ffd9d9;
  font-size: 13px;
}

.contact-panel .contact-privacy {
  margin-top: 18px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.7;
}

.contact-panel .contact-privacy a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-panel .contact-privacy a:hover {
  color: #d5eaff;
}

/* ==================================================
   11. FOOTER
   ================================================== */

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer-column {
  min-width: 0;
  color: #ffffff;
}

.site-footer .footer-column h3 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer .footer-company-name {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.site-footer .footer-address {
  display: block;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.site-footer .footer-contact p {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.footer-sitemap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer-sitemap-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer .footer-sitemap-group a {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer .footer-sitemap-group a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer .footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .footer-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #0066b3;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease,
    transform 0.2s ease;
}

.site-footer .footer-back-to-top:hover {
  background: #00518f;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-back-to-top svg {
  display: block;
}

/* ==================================================
   12. IMPRESSUM UND DATENSCHUTZ
   ================================================== */

.legal-page {
  background: #f4f6f9;
  padding: 70px 24px 90px;
  min-height: 65vh;
}

.legal-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 55px 65px;
  background: #ffffff;
  border: 1px solid #e7ebf0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(23, 54, 93, 0.06);
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.legal-content h1 {
  color: #17365d;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}

.legal-content h2 {
  color: #17365d;
  font-size: 21px;
  line-height: 1.4;
  margin: 34px 0 12px;
  font-weight: 650;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.legal-content a {
  color: #17365d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #285a91;
}

.legal-content h1::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  background: #17365d;
  margin-top: 20px;
  border-radius: 3px;
}

/* ==================================================
   13. RESPONSIVE DARSTELLUNG
   Reihenfolge der bisherigen Regeln bleibt erhalten.
   ================================================== */

@media (max-width: 900px) {
  .footer-container {
    padding: 40px 24px 0;
  }

  .footer-grid {
    gap: 35px;
  }

  .footer-sitemap-grid {
    gap: 12px;
  }

  .site-footer .footer-column h3 {
    font-size: 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 5%;
  }

  .logo img {
    width: 180px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
  }

  .navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 13px 5px;
    font-size: 16px;
    white-space: normal;
  }

  .hero {
    min-height: 500px;
    padding: 65px 6%;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references-section {
    padding-top: 65px;
  }

  .references-header {
    padding-bottom: 35px;
  }

  .references-heading h2 {
    font-size: 32px;
  }

  .reference-card {
    flex-basis: 50%;
  }

  .contact-faq-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 650px;
  }

  .faq-panel {
    padding: 20px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 35px;
  }

  .legal-page {
    padding: 45px 20px 65px;
  }

  .legal-content {
    padding: 40px 35px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    padding: 35px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 24px;
  }

  .footer-sitemap-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .footer-sitemap-group {
    gap: 10px;
  }

  .site-footer .footer-sitemap-group a {
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 25px;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 24px;
  }

  .site-footer .footer-bottom p {
    font-size: 12px;
  }

  .site-footer .footer-back-to-top {
    width: 34px;
    height: 34px;
  }

  .logo img {
    width: 155px;
  }

  .hero {
    min-height: 500px;
    padding: 50px 6%;
    background-position: 55% center;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-buttons {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .intro-section {
    margin-top: -30px;
    padding: 0 16px;
  }

  .intro-text {
    padding: 35px 25px;
  }

  .intro-text h2 {
    font-size: 27px;
  }

  .benefit {
    min-height: 175px;
    padding: 22px 12px;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  .benefit h3 {
    font-size: 16px;
  }

  .services-section {
    padding: 70px 20px;
  }

  .services-section h2 {
    font-size: 31px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 220px;
  }

  .references-section {
    padding-top: 55px;
  }

  .references-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px 30px;
  }

  .references-heading h2 {
    font-size: 30px;
  }

  .references-heading p {
    font-size: 15px;
  }

  .references-arrow {
    width: 44px;
    height: 44px;
  }

  .reference-card {
    flex-basis: 100%;
  }

  .reference-overlay {
    padding: 22px 20px;
  }

  .reference-overlay h3 {
    font-size: 17px;
  }

  .reference-overlay p {
    font-size: 12px;
  }

  .contact-faq-section {
    padding: 60px 16px;
  }

  .contact-panel {
    padding: 35px 24px;
  }

  .contact-panel h2 {
    font-size: 28px;
  }

  .faq-panel h2 {
    font-size: 30px;
  }

  .faq-item summary {
    padding: 18px 12px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 4px 12px 20px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 20px;
  }

  .kontakt-daten {
    padding: 32px 24px;
  }

  .kontakt-daten h2 {
    font-size: 25px;
  }

  .kontakt-eintrag a {
    font-size: 15px;
  }

  .legal-page {
    padding: 25px 12px 45px;
  }

  .legal-content {
    padding: 28px 22px;
    border-radius: 10px;
    font-size: 15px;
  }

  .legal-content h2 {
    font-size: 19px;
    margin-top: 28px;
  }

  .legal-content p {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-button,
  .navigation a,
  .reference-card img {
    transition: none;
  }

  .hero-button:hover,
  .reference-card:hover img {
    transform: none;
  }

  .references-track {
    scroll-behavior: auto;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 20px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-image {
    height: 230px;
  }

  .about-stats {
    gap: 30px;
  }
}
