/* ============================================================
   PC-Servicepartner – Stylesheet
   Minimalist, responsive, accessible.
   Dark text on white background with red accents.
   Layout & menu built with Flexbox.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-text: #1a1f2b;
  --color-text-muted: #55607a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-accent: #e1000b;
  --color-accent-dark: #b00009;
  --color-border: #e2e8f0;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 10px;
  --gap: 1.5rem;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---------- Globales CSS-Sicherheitsnetz ----------
   Verhindert, dass Inhalte auf mobilen Geräten horizontal
   aus dem Bildschirm rutschen (kein seitliches Scrollen). */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Medien & eingebettete Inhalte nie breiter als ihr Container */
img,
picture,
svg,
video,
canvas,
iframe,
embed,
object,
table,
pre {
  max-width: 100%;
}

/* Lange Wörter, URLs und E-Mail-Adressen auf schmalen Displays umbrechen */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
blockquote,
figcaption,
dd,
dt,
span {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

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

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--color-text);
  text-wrap: balance;
}

/* Visible focus for keyboard users (accessibility) */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-accent-dark);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* ---------- Header / Navigation (Flexbox) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 75px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background-color: var(--color-accent);
  color: #ffffff !important;
}

.nav-cta:hover,
.nav-cta:focus {
  background-color: var(--color-accent-dark);
}

/* Language switch */
.nav-lang {
  display: inline-flex;
}

.nav-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-lang a .flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-lang a:hover,
.nav-lang a:focus {
  border-color: var(--color-accent);
}

/* Group the language links closer together than main nav items */
.nav-lang + .nav-lang {
  margin-left: -1.25rem;
}

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background-color: var(--color-text);
}

/* ---------- Dropdown / Submenu ---------- */
.has-submenu {
  position: relative;
}

.submenu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0 0.25rem;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(18, 24, 42, 0.12);
  display: none;
  z-index: 200;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--color-accent);
}

/* ---------- Page Header (Unterseiten) ---------- */
.page-header {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding-block: 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.page-header .lead {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 70ch;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Inhalts-Typografie auf Unterseiten */
.content {
  max-width: 75ch;
}

.content h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.9rem;
}

.content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.content p,
.content li {
  color: var(--color-text-muted);
}

.content > ul {
  padding-left: 1.25rem;
}

.content > ul li {
  margin-bottom: 0.4rem;
}

.footer-address {
  font-style: normal;
  margin-top: 1rem;
  color: #9aa6bd;
  line-height: 1.8;
}

.footer-address a {
  color: #c7d0e0;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--color-bg-alt);
  padding-block: 3.5rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.hero-text {
  flex: 1 1 420px;
}

.hero-media {
  flex: 1 1 360px;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.hero-regions {
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 3.5rem;
}

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

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

/* Content-Überschriften auf Unterseiten liegen ebenfalls in .section,
   sollen aber KEINEN Section-Akzent tragen (stören sonst den Bild-Umfluss) */
.content h2 {
  margin: 2rem 0 0.9rem;
  padding-bottom: 0;
}

.content h2::after {
  content: none;
}

.section-intro {
  max-width: 60ch;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.welcome-closer {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ---------- Card Grid (Flexbox-Korrektur für Firefox) ---------- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.card {
  flex: 1 1 240px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  
  /* DIE ULTIMATIVE RETTUNG FÜR FIREFOX (PC-Desktop): */
  min-width: 0 !important;          /* Zwingt Firefox, die Kachel-Breite starr im Raster zu halten */
  max-width: 100% !important;       /* Verhindert, dass die Box den Inhaltsbereich sprengt */
  overflow: hidden;                 /* Schneidet nichts ab, signalisiert Firefox aber ein klares Ende */
  word-wrap: break-word !important; /* Notfall-Umbruch, falls Wörter die Boxen-Grenze berühren */
}

.card img {
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  /* Optionale Absicherung für Überschriften in den Karten: */
  hyphens: none !important;
  word-break: normal !important;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
}



/* ---------- Teaser Grid (Flexbox) ---------- */
.teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.teaser-card {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.teaser-body {
  padding: 1.5rem;
}

.teaser-body h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.teaser-body p {
  margin: 0;
  color: var(--color-text-muted);
}

.teaser-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- Content Figure ---------- */
.content-figure {
  margin: 0 0 2rem;
}

.content-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Kleines Content-Bild (links neben dem Text) ---------- */
.side-figure {
  float: left;
  width: 260px;
  max-width: 40%;
  margin: 0.25rem 1.75rem 1rem 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Überschriften starten unter dem schwebenden Bild auf voller Breite,
   damit sie nicht im schmalen Bereich daneben unschön umbrechen */
.content h2 {
  clear: left;
}

.content h3 {
  clear: none;
}

/* Die erste Überschrift/der erste Text direkt neben dem Bild bleibt daneben
   und wird bündig an der Bildoberkante ausgerichtet */
.side-figure + h2,
.side-figure + h3,
.side-figure + p {
  clear: none;
  margin-top: 0;
}

@media (max-width: 640px) {
  .side-figure {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Kunden-Raster ---------- */
.customer-grid {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .customer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

.customer-body {
  padding: 1rem 1.25rem 1.25rem;
}

.customer-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.customer-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Partner-Logo-Raster ---------- */
.logo-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 110px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.logo-card img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Split Sections (Flexbox) ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.split-media,
.split-text {
  flex: 1 1 320px;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
}

.split-reverse .split-media {
  order: 2;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.check-list.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.check-list.two-col li {
  flex: 1 1 240px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 2rem;
}

.contact-card {
  flex: 1 1 240px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.contact-card p,
.contact-address {
  margin: 0;
  color: var(--color-text-muted);
  font-style: normal;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-callout {
  margin: 2rem 0 0;
}

.contact-callout img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* ---------- Contact Form ---------- */
.form-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.form-intro {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

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

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.form-field {
  flex: 1 1 240px;
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-field .req {
  color: var(--color-accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

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

.form-field textarea {
  resize: vertical;
}

.form-captcha {
  max-width: 320px;
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-consent input {
  width: auto;
  margin-top: 0.25rem;
  flex: none;
}

.form-submit {
  border: none;
  cursor: pointer;
  font: inherit;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-result {
  margin-top: 1rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-result--success {
  color: #157347;
}

.form-result--error {
  color: var(--color-accent-dark);
}

.form-result--info {
  color: var(--color-text-muted);
}

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

/* ---------- CTA Band ---------- */
.cta-band {
  background-color: var(--color-accent);
  color: #ffffff;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p {
  color: #ffe6e8;
  margin: 0 0 1.75rem;
}

.cta-band .btn-primary {
  background-color: #ffffff;
  color: var(--color-accent-dark);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus {
  background-color: #ffe6e8;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #12182a;
  color: #c7d0e0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-brand {
  flex: 1 1 280px;
}

.footer-brand p {
  margin: 1rem 0 0;
  color: #9aa6bd;
}

.footer-nav,
.footer-contact {
  flex: 1 1 200px;
}

.footer-remote {
  flex: 1 1 200px;
}

.footer-remote p {
  margin: 0 0 1rem;
  color: #9aa6bd;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-remote .remote-link {
  display: inline-block;
  transition: transform 0.15s ease;
}

.footer-remote .remote-link:hover,
.footer-remote .remote-link:focus {
  transform: translateY(-2px);
}

.footer-remote img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.footer-heading {
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 1rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-contact a {
  color: #c7d0e0;
}

.footer-nav a:hover,
.footer-nav a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
  color: #ffffff;
}

.footer-contact address {
  font-style: normal;
  color: #9aa6bd;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.25rem;
  font-size: 0.875rem;
  color: #8b96ad;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-inner p {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-links a {
  color: #8b96ad;
}

.legal-links a:hover,
.legal-links a:focus {
  color: #ffffff;
}

/* ---------- Legal Pages ---------- */
.legal-container {
  max-width: 800px;
}

.legal-page h1 {
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-list {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal-address {
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0 0 1rem;
}

.legal-list {
  padding-left: 1.25rem;
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-hint {
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-bg-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.legal-back {
  margin-top: 2.5rem;
  font-weight: 600;
}

/* ---------- Bewertungen ---------- */
.rating {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
}

.card blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.card blockquote p {
  font-style: italic;
  color: var(--color-text-muted);
}

.review-author {
  font-weight: 600;
  margin: 0;
}

/* ---------- Responsive: Mobile Navigation ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

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

  .nav-list li {
    border-top: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .has-submenu > a {
    flex: 1;
  }

  .submenu-toggle {
    display: inline-block;
  }

  .submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-height: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem;
    background-color: transparent;
  }

  .has-submenu.submenu-open > .submenu {
    display: block;
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: none;
  }

  .has-submenu.submenu-open:hover > .submenu,
  .has-submenu.submenu-open:focus-within > .submenu {
    display: block;
  }

  .submenu a {
    padding-left: 1rem;
    white-space: normal;
  }

  .split-reverse .split-media {
    order: 0;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
//* 1. GLOBALE REGELN (Für alle Browser und Geräte gültig) */
#hero-titel {
    display: block !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    word-break: normal !important;
    white-space: normal !important;
    width: 100% !important;        /* Zwingt Firefox, die volle Breite zu nutzen */
    max-width: 100% !important;
}

/* 2. NUR FÜR DESKTOP-BILDSCHIRME (Firefox & Co. auf dem PC) */
@media only screen and (min-width: 1025px) {
    #hero-titel {
        text-wrap: balance !important; /* Verteilt den Text perfekt */
    }
}

/* 3. RETTUNG FÜR MOBILE GERÄTE (Speziell für das polnische /pl Smartphone-Problem) */
@media only screen and (max-width: 1024px) {
    #hero-titel {
        font-size: 1.6rem !important; /* Noch ein Stück kleiner, damit lange polnische Wörter ganz reinpassen */
        line-height: 1.4 !important;   
        text-wrap: pretty !important;
    }
}




