/* smart-em.com – Stylesheet
   Farben und Maße aus dem alten Theme (Automatic.css / Frames) übernommen.
   Schriften: nur Systemschriften, keine Schriftdateien. */

:root {
  --orange: #ff9500;
  --orange-hover: #ff9f1a;
  --orange-hell: #fff4e6;
  --schwarz: #000;
  --dunkel: #1a1a1a;
  --grau: #404040;
  --weiss: #fff;
  --ueberschrift: rgba(255, 255, 255, 0.8);
  --radius: 5px;

  --text-s: clamp(0.813rem, 0.8rem + 0.047vw, 0.844rem);
  --text-m: clamp(1rem, 0.959rem + 0.185vw, 1.125rem);
  --h1: clamp(1.97rem, 1.608rem + 1.503vw, 2.96rem);
  --h2: clamp(1.638rem, 1.421rem + 0.889vw, 2.221rem);
  --h3: clamp(1.359rem, 1.2455rem + 0.468vw, 1.666rem);

  --rand: clamp(1.3rem, 0.41rem + 3.714vw, 3.75rem);
  --abstand: clamp(3.75rem, 3.05rem + 2.857vw, 5.625rem);
  --breite: 1366px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dunkel);
  color: var(--weiss);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--text-m);
  line-height: 1.333;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ueberschrift);
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: 1.125rem; color: var(--weiss); }
.h3 { font-size: var(--h3); }
p { margin: 0; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Abstände zwischen aufeinanderfolgenden Elementen */
.stapel > * + * { margin-top: 1.25rem; }
.stapel > .eyebrow + * { margin-top: 0.75rem; }
.stapel > .knoepfe { margin-top: 2rem; }

.eyebrow {
  color: var(--orange);
  font-size: var(--text-s);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.095em;
}

.mitte { text-align: center; }
.mitte .schmal { margin-inline: auto; }
.schmal { max-width: 36rem; }
.titel-schmal { max-width: 20rem; }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.mitte .knoepfe { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.5em;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  font-size: var(--text-m);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn--voll { background: var(--orange); color: var(--orange-hell); }
.btn--voll:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--orange-hell); }
.btn--rand { background: transparent; color: var(--orange); }
.btn--rand:hover { background: var(--orange); color: var(--orange-hell); }
.btn svg { width: 1em; height: 1em; }

/* ---------- Bereiche ---------- */
.bereich { padding: var(--abstand) var(--rand); }
.bereich--grau { background: var(--grau); }
.inhalt { max-width: var(--breite); margin-inline: auto; }

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Kopfbereich ---------- */
.topbar {
  background: var(--schwarz);
  padding: 0.6rem var(--rand) 0;
  font-size: var(--text-s);
}
.topbar .inhalt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1.75rem;
  max-width: 1290px;
}
.topbar a,
.topbar span { display: inline-flex; align-items: center; gap: 0.5em; color: var(--weiss); }
.topbar svg { width: 1em; height: 1em; color: #8c8c8c; }

.kopf {
  background: var(--schwarz);
  padding: 13px var(--rand);
}
.kopf .inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1250px;
}
.kopf .logo img { width: 99px; height: 99px; border-radius: var(--radius); }

.menue { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.menue a { color: var(--orange); }
.kopf .btn--voll { color: var(--weiss); }

.menue-knopf,
.menue-zu {
  display: none;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.menue-knopf svg,
.menue-zu svg { width: 28px; height: 28px; display: block; }

.handy-menue { display: none; }

/* ---------- Fußbereich ---------- */
.fuss {
  background: var(--schwarz);
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 31.5rem);
  gap: 2rem;
  padding: 0 14px 0 var(--rand);
}
.fuss__links { padding-block: 60px; }
.fuss__links img { width: 150px; height: 150px; border-radius: var(--radius); }
.fuss__links > p:first-of-type { max-width: 36rem; margin-top: 2.5rem; }
.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  margin-top: 2rem;
  font-size: var(--text-s);
}
.fuss__zeile ul { display: flex; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.fuss__credit { margin-top: 2rem; font-size: var(--text-s); text-transform: uppercase; }
.fuss__credit a { color: var(--weiss); }
.fuss__nav {
  margin-top: 36px;
  padding: 45px;
  background: var(--dunkel);
  border-radius: 45px 45px 0 0;
}
.fuss__nav ul { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.fuss__nav li + li { margin-top: 1.1rem; }

/* ---------- Startseite ---------- */
.hero-bild {
  position: relative;
  min-height: 736px;
  display: grid;
  place-items: center;
  padding: var(--abstand) var(--rand);
  overflow: hidden;
}
.hero-bild > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}
.hero-bild .stapel { position: relative; z-index: 2; max-width: 70rem; text-align: center; }
.hero-bild h1 { color: var(--weiss); }
.hero-bild p { max-width: 36.4rem; margin-inline: auto; text-align: left; }
.hero-bild .knoepfe { justify-content: center; }

.wer-wir-sind { grid-template-columns: 645fr 615fr; align-items: stretch; gap: 2.5rem; }
.wer-wir-sind__karte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.25rem);
  background: var(--grau);
  border-radius: var(--radius);
}
.wer-wir-sind__karte h2 { font-size: var(--h1); }
.wer-wir-sind__karte p:not(.eyebrow) { max-width: 26rem; }
.leistungen-kurz { display: grid; gap: 2.5rem; margin: 0; padding: 1.25rem 0; list-style: none; }
.leistungen-kurz li { display: grid; grid-template-columns: 1fr 313px; gap: 1.25rem; align-items: center; }
.leistungen-kurz img { width: 100%; aspect-ratio: 313 / 226; object-fit: cover; border-radius: var(--radius); }
.leistungen-kurz h3 { max-width: 12ch; margin-bottom: 1.25rem; }

.bereich--hoch { padding-block: clamp(3.75rem, 2.4rem + 5.7vw, 8.44rem); }
.expertise { grid-template-columns: 430fr 860fr; align-items: center; gap: 3.75rem; }

/* Akkordeon: aufklappen bei Mauszeiger oder Tastatur-Fokus */
.akkordeon { display: flex; height: 432px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius); overflow: hidden; }
.akkordeon li { flex: 1 1 20%; min-width: 0; transition: flex-basis 0.3s ease-in-out; }
.akkordeon li:hover,
.akkordeon li:focus-within { flex-basis: 100%; }
.akkordeon a {
  position: relative;
  display: block;
  height: 100%;
  color: var(--weiss);
  overflow: hidden;
}
.akkordeon a:hover { text-decoration: none; }
.akkordeon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akkordeon a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.5); }
.akkordeon__senkrecht,
.akkordeon__titel { position: absolute; z-index: 2; font-weight: 700; }
.akkordeon__senkrecht {
  left: 1.6rem;
  bottom: 1.9rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}
.akkordeon__titel {
  left: 1.9rem;
  right: 1.9rem;
  bottom: 1.9rem;
  font-size: var(--h3);
  line-height: 1.15;
  opacity: 0;
  transition: opacity 0.2s;
}
.akkordeon__titel::after { content: " \203A"; }
.akkordeon li:hover .akkordeon__senkrecht,
.akkordeon li:focus-within .akkordeon__senkrecht { opacity: 0; }
.akkordeon li:hover .akkordeon__titel,
.akkordeon li:focus-within .akkordeon__titel { opacity: 1; transition-delay: 0.15s; }

/* ---------- Seitenkopf: Bild links, Text rechts ---------- */
.hero-halb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
/* height: 0 + min-height: 100% – das Bild bestimmt nicht die Höhe, es füllt nur die Spalte */
.hero-halb > img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.hero-halb .stapel { align-self: center; max-width: 42rem; padding: 3rem var(--rand); }
.hero-halb h1 { max-width: 38rem; }
.hero-halb p { max-width: 36.4rem; }

/* ---------- About Us ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1.875rem; margin: 3.75rem 0 0; padding: 0; list-style: none; }
.team li { position: relative; border-radius: var(--radius); overflow: hidden; }
.team img { width: 100%; aspect-ratio: 645 / 742; object-fit: cover; }
.team__text {
  position: absolute;
  inset: auto 0 0;
  padding: 6rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}
.team h3 { color: var(--weiss); }
.team p { margin-top: 0.3rem; font-size: var(--text-s); }

.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.werte h3 { font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.45rem); margin-bottom: 0.9rem; }
.werte p { font-size: 0.95em; }

.kunden { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; max-width: 60rem; margin: 3.5rem auto 0; padding: 0; list-style: none; }
.kunden a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  padding: 20px;
  background: var(--grau);
  border-radius: var(--radius);
  color: var(--weiss);
  font-size: var(--text-s);
  text-transform: uppercase;
}
.kunden a:hover { text-decoration: none; background: #4d4d4d; }
.kunden img { height: 36px; width: auto; }

/* ---------- Services ---------- */
/* Bilder reichen wie im Original bis an den Bildschirmrand */
.dienste { display: grid; gap: 4.2rem; margin: 3.75rem calc(-1 * var(--rand)) 0; padding: 0; list-style: none; }
.dienste li { display: grid; grid-template-columns: 815fr 625fr; align-items: center; scroll-margin-top: 2rem; }
.dienste li:nth-child(even) { grid-template-columns: 625fr 815fr; }
.dienste li:nth-child(even) img { order: 2; }
.dienste img { width: 100%; aspect-ratio: 815 / 543; object-fit: cover; border-radius: var(--radius); }
.dienste .stapel { max-width: 34rem; padding-inline: var(--rand); }

/* ---------- Industries ---------- */
.branchen { display: grid; gap: 1.9rem; margin: 0; padding: 0; list-style: none; }
.branchen li {
  display: grid;
  grid-template-columns: 720fr 555fr;
  gap: 2rem;
  align-items: center;
  padding: 2.8rem;
  background: var(--grau);
  border-radius: var(--radius);
}
.branchen li:nth-child(even) { grid-template-columns: 555fr 720fr; }
.branchen li:nth-child(even) img { order: 2; }
.branchen img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.branchen .stapel { max-width: 30rem; }

/* ---------- Kontakt ---------- */
.kontakt-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.kontakt-liste li { display: flex; gap: 1rem; align-items: flex-start; }
.kontakt-liste .symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #e6e6e6;
  color: var(--grau);
}
.kontakt-liste .symbol svg { width: 1.25rem; height: 1.25rem; }
.kontakt-liste h3 { font-size: 1.125rem; color: var(--weiss); margin-bottom: 0.4rem; }

.anfrage { grid-template-columns: 516fr 774fr; align-items: center; gap: 1.5rem clamp(1.5rem, 1.6vw, 2rem); }
.anfrage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.mail-adresse { font-size: var(--h3); font-weight: 700; user-select: all; }

/* ---------- Rechtstexte ---------- */
.recht { overflow-wrap: break-word; hyphens: auto; }
.recht > * { max-width: 60rem; }
.recht h2 { margin-top: 3rem; }
.recht h3 { margin-top: 2rem; font-size: 1.25rem; }
.recht p { margin-top: 1rem; }
.recht .stand { margin-top: 3rem; font-size: var(--text-s); }
.impressum dt { margin-top: 2.2rem; color: var(--ueberschrift); font-size: var(--h2); font-weight: 700; line-height: 1.1; }
.impressum dd { margin: 1.1rem 0 0; }
.sprungmarken { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }

/* ---------- 404 ---------- */
.fehler { display: grid; grid-template-columns: 735fr 705fr; min-height: 900px; }
.fehler .stapel { align-self: center; padding: var(--abstand) var(--rand); }
.fehler h1 { font-size: clamp(2.8rem, 1.6rem + 4.9vw, 5.33rem); }
.fehler p { max-width: 36.4rem; color: var(--ueberschrift); }
.fehler > img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .werte { grid-template-columns: 1fr 1fr; }
  .leistungen-kurz li { grid-template-columns: 1fr 40%; }
}

/* ---------- Handy und kleine Tablets ---------- */
@media (max-width: 991px) {
  .topbar .inhalt { justify-content: flex-start; flex-direction: column; }
  .kopf { padding-block: 10px; }
  .kopf .logo img { width: 75px; height: 75px; }
  .kopf .inhalt > nav,
  .kopf .inhalt > .btn { display: none; }
  .menue-knopf { display: block; }

  .handy-menue {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    padding: 1.5rem var(--rand);
    background: var(--dunkel);
    overflow-y: auto;
  }
  .handy-menue.offen { display: block; }
  .handy-menue .menue-zu { display: block; margin-left: auto; }
  .handy-menue ul { margin: 1rem 0 0; padding: 0; list-style: none; }
  .handy-menue a { display: block; padding: 1rem 0; color: var(--weiss); font-size: 1.125rem; }
  .handy-menue a[aria-current="page"] { color: var(--orange); text-decoration: underline; }

  .zwei-spalten,
  .wer-wir-sind,
  .expertise,
  .anfrage { grid-template-columns: 1fr; }

  .hero-bild { min-height: 0; place-items: start; }
  .hero-bild .stapel,
  .hero-bild p { text-align: left; }
  .hero-bild .knoepfe { justify-content: flex-start; }

  .akkordeon { flex-direction: column; height: auto; gap: 1.25rem; overflow: visible; }
  .akkordeon li { flex: none; }
  .akkordeon a { height: 21rem; border-radius: var(--radius); }
  .akkordeon__senkrecht { display: none; }
  .akkordeon__titel { opacity: 1; left: 1.25rem; right: 1.25rem; bottom: 1.5rem; }
  .akkordeon__titel::after { content: none; }

  .hero-halb,
  .fehler { grid-template-columns: 1fr; min-height: 0; }
  .hero-halb > img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .hero-halb .stapel { padding-block: var(--abstand); }
  .fehler > img { aspect-ratio: 4 / 3; height: auto; min-height: 0; order: -1; }

  .team { grid-template-columns: 1fr; }
  .werte { grid-template-columns: 1fr; gap: 2rem; }

  .dienste li,
  .dienste li:nth-child(even),
  .branchen li,
  .branchen li:nth-child(even) { grid-template-columns: 1fr; }
  .dienste li:nth-child(even) img,
  .branchen li:nth-child(even) img { order: 0; }
  .dienste .stapel { padding-block: 1.5rem 0; }
  .branchen li { padding: 1.25rem; gap: 1.5rem; }

  .anfrage img { aspect-ratio: 3 / 2; }

  .fuss { grid-template-columns: 1fr; padding: 2rem var(--rand) 0; }
  .fuss__nav { order: -1; margin-top: 0; border-radius: 30px; padding: 2rem; }
  .fuss__links { padding-block: 2rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
