/* =========================
   FONTS
   ========================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
}

/* =========================
   DESIGN-VARIABLEN
   ========================= */
:root {
  --brand-blue: #003366;
  --text-on-dark: #fff;
  --surface: #fff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.1);
  --radius: .5rem;

  /* Layout-Hilfen */
  --header-h: 80px;
  --footer-h: 40px;
  --content-top: var(--header-h);
  --content-bottom: calc(var(--footer-h) + 10px);
}

/* =========================
   GRUNDLAYOUT & TYPOGRAFIE
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  height: 100%;
  /* Basisgröße (Desktop): 16px */
  font-size: 15.5px;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Mono-Helferklasse (System-Monos) */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* Überschriften */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0.75rem 0 1.25rem; }
h4, h5, h6 { font-weight: 600; line-height: 1.25; margin: 0 0 .5rem; }

/* =========================
   HEADER & FOOTER
   ========================= */
header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: var(--header-h);
  inline-size: 100%;
  background: var(--brand-blue);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

footer {
  position: fixed;
  inset-block-end: 0;
  inset-inline-start: 0;
  min-height: var(--footer-h);
  inline-size: 100%;
  background: #a9a9a9;
  color: #000;
  text-align: center;
  padding: 0 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

/* =========================
   MAIN
   ========================= */
main {
  flex: 1;
  overflow-y: auto;
  padding-block: var(--content-top) calc(var(--footer-h) + 10px);
  padding-inline: 0;
}

main.bg-home {
  /* ✅ KORRIGIERT: Bild liegt in /assets, CSS liegt in /core */
  background: center / cover no-repeat fixed url("../assets/schreibtisch_var_3.png");
  position: relative;
  min-height: calc(100vh - (var(--header-h) + var(--footer-h)));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay exakt zwischen Header und Footer */
main.bg-home::before {
  content: "";
  position: fixed;
  inset-block-start: var(--header-h);
  inset-block-end: var(--footer-h);
  inset-inline: 0;
  background: rgba(255,255,255,.2);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   HERO-BEREICH
   ========================= */
#home {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

#home h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 1rem; }
#home p  { font-size: 1rem; margin: 0; }

/* =========================
   GRID & CONTAINER
   ========================= */
section { padding: 2rem 1rem; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.25em 1rem;
  /* border: 2px solid red; */ 
}

.home-grid {
  display: grid;
  gap: .5rem;
  max-width: 100%;
  inline-size: 100%;
}

/* =========================
   HEADER-INHALT
   ========================= */
.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container { display: flex; align-items: center; gap: 1rem; }

.logo-img  { inline-size: 64px; block-size: 64px; }
.logo-text { font-weight: 700; font-size: 1.9rem; color: var(--text-on-dark); }

/* Logo-Wechsel */
.logo-picker {
  position: absolute;
  top: 10px;
  left: 33%;
  display: flex;
  gap: .5rem;
  background: var(--brand-blue);
  border: 1px solid #ccc;
  padding: .5rem;
  border-radius: var(--radius);
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.logo-picker img {
  inline-size: 48px; block-size: 48px;
  cursor: pointer;
  border-radius: .25rem;
  transition: transform .2s;
}
.logo-picker img:hover { transform: scale(1.1); box-shadow: 0 0 4px rgba(0,0,0,.3); }
.hidden { display: none !important; }

/* =========================
   NAVIGATION
   ========================= */
.desktop-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.desktop-menu ul li a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1rem;
}

.mobile-menu-button {
  color: var(--text-on-dark);
  background: none;
  border: 0;
  display: none;
  cursor: pointer;
}

/* Mobile Overlay & Drawer */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3000;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  background: var(--brand-blue);
  min-width: 120px;
  width: max-content;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 3001;
}
.mobile-menu a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 1rem;
  margin-block-end: 1.2rem;
}
.mobile-menu a:hover { text-decoration: underline; }

/* =========================
   SEITEN-INHALTE
   ========================= */
.about-container {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid lightgrey;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}
.about-container img {
  float: left;
  max-width: 350px;
  inline-size: 100%;
  height: auto;
  margin: 0 1.5rem .3rem 0;
  border-radius: var(--radius);
}
.about-text { text-align: left; margin: 0; font-size: 1rem; }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.leistung-box {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid lightgrey;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0;
}
.leistung-box img {
  display: block;
  inline-size: 100%;
  height: auto;
}
.leistung-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem;
}

.leistungen-liste {
  list-style: none;
  margin: 0;
  padding: 0 1rem 1rem;
}
.leistungen-liste li {
  position: relative;
  padding-inline-start: 2rem;
  margin-block-end: .75rem;
  font-size: 1.1rem;
  line-height: 1.5;
}
.leistungen-liste li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  color: green;
  font-weight: 700;
}

.kontakt-headline { margin-top: 0; font-size: 1.35rem; }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
}

.kontakt-container-info,
.kontakt-container-form {
  background: #ececec;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid lightgrey;
  box-shadow: var(--shadow-sm);
}
.kontakt-container-info img {
  max-width: 250px;
  inline-size: 100%;
  height: auto;
  border-radius: var(--radius);
}

.kontakt-form {
  inline-size: 500px;
  max-inline-size: 100%;
  margin: 0;
}
#kontakt-form div { margin-block-end: .75rem; }
#kontakt-form label { display: block; margin-block-end: .3rem; }
#kontakt-form input,
#kontakt-form textarea {
  inline-size: 100%;
  font-size: .9rem;
  padding: .4rem;
  border-radius: var(--radius);
  border: 1px solid #aaa;
  outline: none;
}
#kontakt-form input:focus,
#kontakt-form textarea:focus { border-color: var(--brand-blue); }

#kontakt-form button {
  font-size: 1rem;
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid #000;
  padding: .5rem 1.25rem;
  border-radius: .25rem;
  cursor: pointer;
}
#kontakt-form button:hover { background: #007afa; }

.map-placeholder {
  inline-size: 100%;
  block-size: 200px;
  background: #e2e8f0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  margin-block-start: 1rem;
}

/* Abschnitt-Padding konsistent */
#leistungen, #about, #kontakt, #impressum, #datenschutz { padding: 1rem; }

/* =========================
   MEDIA QUERIES
   ========================= */

/* ≥600px: etwas mehr Luft + Standard-Abstände */
@media (min-width: 600px) {
  #home { inline-size: 100%; }
  #leistungen, #about, #kontakt, #impressum, #datenschutz { margin-block-end: 5rem; }
}

/* ≤600px (Phones) */
@media (max-width: 600px) {
  html { font-size: 15px; }
  #home h1 { font-size: 1.5rem; }
  #home p  { font-size: 1rem; }
  .home-grid { text-align: center; }
  #leistungen, #about, #kontakt, #impressum, #datenschutz { margin-block-end: 6.5rem; }
}

/* Mobile Menü an/aus (≤768px: Burger + Drawer) */
@media (max-width: 768px) {
  .logo-text { font-size: 1.6rem; padding-bottom: 4px; }
  .desktop-menu { display: none; }
  .mobile-menu-button { display: block; }

  .about-container {
    border-radius: var(--radius);
    border: 1px solid lightgrey;
    box-shadow: var(--shadow-sm);
    padding: 0;
  }
  .about-container img {
    max-width: none;
    inline-size: 100%;
    float: none;
    display: block;
    margin: 0;
    border-radius: var(--radius);
  }
  .about-text { padding: 1rem; }
}

/* iPad & große Tablets im Hochformat wie Handy behandeln */
@media (orientation: portrait) and (max-width: 1024px) {
  .desktop-menu { display: none !important; }
  .mobile-menu-button { display: inline-block !important; }
}

/* ... Rest unverändert ... */
