/* MPU Institut Dresden – ein Stylesheet für alle Seiten.
   Optik nach der alten Wix-Seite: schwarz/weiß, türkiser Akzent, fette Grotesk. */

:root {
  --schwarz: #000;
  --weiss: #fff;
  --grau: #f2f2f2;
  --text: #1a1a1a;
  --leise: #6b6b6b;
  --akzent: #12c6e0;
  --akzent-hell: #c8f4fb;
  --rand: #d6d6d6;
  --schrift: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--schrift); font-weight: 300; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--weiss); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.breit { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mitte { text-align: center; }

/* Schräger türkiser Strich (Deko) */
.strich { display: block; width: 28px; height: 200px; background: var(--akzent); transform: skewX(-22deg); }
.strich.hell { background: var(--akzent-hell); }

/* Kleines Etikett „Ü B E R  U N S“ */
.etikett { font-size: 12px; font-weight: 700; letter-spacing: .45em; text-transform: uppercase; color: var(--leise); margin: 0 0 40px; }
.schwarz .etikett { color: #9a9a9a; }

/* Knöpfe */
.knopf { display: inline-block; padding: .85em 2em; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center; background: var(--akzent); color: var(--schwarz); border: 2px solid var(--akzent); cursor: pointer; transition: background .2s, color .2s; }
.knopf:hover { background: var(--schwarz); color: var(--akzent); }
.knopf.rahmen { background: transparent; color: var(--akzent); }
.knopf.rahmen:hover { background: var(--akzent); color: var(--schwarz); }
.knopf.voll { border-color: var(--schwarz); }

/* ---------- Kopf ---------- */
.kopf { background: var(--schwarz); color: var(--weiss); position: relative; z-index: 10; }
.kopf .breit { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.marke { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.marke strong { position: relative; padding-left: 12px; font-size: 16px; line-height: 1.05; }
.marke strong .strich { position: absolute; left: 0; top: 2px; width: 3px; height: 30px; transform: skewX(-20deg); }
.marke span { font-size: 12px; line-height: 1.25; font-weight: 300; }
.kopf nav { display: flex; align-items: center; gap: 26px; }
.kopf nav a { text-decoration: none; font-size: 15px; }
.kopf nav a:not(.knopf) { font-weight: 400; }
.kopf nav a:not(.knopf):hover { color: var(--akzent); }
.kopf nav .knopf { margin-left: 12px; padding: .7em 1.1em; font-size: 14px; }
.menue-knopf { display: none; }

/* ---------- Startseite ---------- */
.held { background: var(--schwarz) url(bilder/frauenkirche.jpg) right center / cover no-repeat; color: var(--weiss); min-height: min(88vh, 820px); display: flex; align-items: center; }
.held .breit { width: 100%; padding-top: 60px; padding-bottom: 120px; }
.held h1 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: .3em; }
.held p { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; margin: 0; }

section { padding: 96px 0; }
/* Fließtext in den Abschnitten der Startseite etwas größer, wie im Original */
.ueber p:not(.etikett), .team-block p:not(.etikett), .warum p:not(.etikett) { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; }
.schwarz { background: var(--schwarz); color: var(--weiss); }
.grau { background: var(--grau); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Über uns: der schwarze Block läuft unter Bild und Karte an */
.ueber { padding-bottom: 0; background: linear-gradient(var(--weiss) calc(100% - 100px), var(--schwarz) 0); }
.ueber-raster { display: grid; grid-template-columns: 1fr 1fr; background: var(--weiss); }
.ueber-raster img { width: 100%; height: 100%; object-fit: cover; }
.textkarte { position: relative; padding: 80px 56px 64px 40px; }
.textkarte .strich { position: absolute; left: 30%; top: 30px; height: 420px; width: 48px; z-index: 0; }
.textkarte h2, .textkarte p { position: relative; }
.textkarte h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.3; margin-bottom: 1.4em; }

.zwischen { background: linear-gradient(rgba(0,0,0,.78), var(--schwarz)), url(bilder/sofa.jpg) center 70% / cover; padding: 40px 0 160px; }
.zwischen .strich { margin-left: 34%; height: 210px; width: 34px; }

.werte-block { padding-top: 40px; }
.werte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.werte li { border-bottom: 2px solid var(--weiss); padding-bottom: 28px; font-weight: 300; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; }
.werte b { display: block; color: var(--akzent); font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 10px; }

.team-block { padding-top: 64px; }
.team-block h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin-bottom: .8em; }
.team-block .zwei > div:first-child { max-width: 380px; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; max-width: 400px; justify-self: center; scrollbar-color: var(--akzent) #222; }
.slider figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; }
.slider img { aspect-ratio: 3 / 4.1; object-fit: cover; width: 100%; }
.slider figcaption { font-size: 13px; color: #9a9a9a; padding: 8px 0 12px; }

.warum { padding-bottom: 0; background: linear-gradient(var(--weiss) calc(100% - 100px), var(--schwarz) 0); }
.warum-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; background: var(--weiss); padding: 40px 40px 64px; }
.warum-raster > div { position: relative; }
.warum-raster .strich { position: absolute; left: 6%; top: -40px; height: 380px; width: 40px; }
.warum-raster h2, .warum-raster > div p { position: relative; }
.warum-raster h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin: 20px 0 1.2em; }

.erfahrung h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 2em; max-width: 400px; }
.erfahrung .knopf { font-size: 17px; padding: .9em 2.2em; }
.zitat { margin: 0 auto; max-width: 380px; }
.zitat img { width: 160px; aspect-ratio: 160 / 190; object-fit: cover; border-radius: 80px 80px 0 0; margin: 0 auto 26px; }
.zitat blockquote { margin: 0 0 1em; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.zitat figcaption { font-weight: 700; font-size: 16px; }

.vortraege h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); max-width: 640px; margin-bottom: 2em; }
.video { display: inline-block; max-width: 300px; text-decoration: none; text-align: center; position: relative; }
.video::after { content: ""; position: absolute; left: 50%; top: 31%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.25); }
.video span { display: block; margin-top: 14px; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--schwarz); padding: 0 20px; }
.vortraege .mitte { margin: 40px 0 0; }

/* ---------- Fuß ---------- */
.fuss { background: var(--schwarz); color: var(--weiss); padding: 72px 0 24px; }
.fuss .breit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--akzent); }
.fuss .gross { font-size: clamp(1.4rem, 2.9vw, 2.5rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.4em; }
.fuss .klein { font-size: 13px; margin: 0; }
.fuss .links a { margin-right: 14px; }
.fuss-kontakt { position: relative; padding-left: 64px; }
.fuss-kontakt .strich { position: absolute; left: 10px; top: 4px; width: 12px; height: 130px; background: #0e4f58; }

/* ---------- Textseiten (Rechtstexte, Neuigkeiten) ---------- */
.seite { max-width: 820px; padding-top: 72px; padding-bottom: 96px; }
.seite h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .7em; }
.seite h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.8em; }
.seite h3 { font-size: 1.2rem; margin-top: 1.6em; }
.seite section { padding: 0; }
.seite ul, .seite ol { padding-left: 1.3em; }
.seite a { color: inherit; text-decoration-color: var(--akzent); text-underline-offset: 3px; }
.seite a.knopf { color: var(--schwarz); }
.seite .zwei { align-items: start; }
.hinweis { background: #eafafd; border-left: 4px solid var(--akzent); padding: 12px 16px; margin: 1em 0; }

/* Blogbeitrag */
.beitrag { border: 1px solid var(--rand); padding: 32px; margin: 0 0 40px; }
.beitrag h2 { margin-top: 0; }
.beitrag time, .beitrag .datum { display: block; font-size: 14px; color: var(--leise); margin-bottom: 1em; }
.beitrag img { width: 100%; margin: 0 0 1.4em; }

/* Service-Karte (Buchung): Bild links, schwarze Karte rechts überlappend */
.karte { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr repeat(5, auto) 1fr; margin: 32px 0 64px; }
.karte::before { content: ""; grid-column: 2; grid-row: 1 / -1; margin: 40px 0 40px -80px; background: var(--schwarz); position: relative; z-index: 1; }
.karte > img { grid-column: 1; grid-row: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte > :not(img) { grid-column: 2; position: relative; z-index: 2; color: var(--weiss); margin: 0 0 0 -80px; padding: 0 40px 12px; }
.karte > :nth-child(2) { grid-row: 2; padding-top: 0; }
.karte > :nth-child(3) { grid-row: 3; }
.karte > :nth-child(4) { grid-row: 4; }
.karte > :nth-child(5) { grid-row: 5; }
.karte > :nth-child(6) { grid-row: 6; }
.karte h3 { font-size: 1.6rem; }
.karte .knopf { margin-top: 12px; }
/* Karte ohne Bild (z. B. Kontaktdaten): schlichte schwarze Box */
.karte:not(:has(> img)) { display: block; background: var(--schwarz); padding: 40px; }
.karte:not(:has(> img))::before { display: none; }
.karte:not(:has(> img)) > * { margin: 0 0 .8em; padding: 0; }
.karte a:not(.knopf) { color: var(--weiss); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 18px; margin: 24px 0 40px; }
.formular label { display: grid; gap: 6px; font-size: 15px; font-weight: 400; }
.formular input, .formular select, .formular textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); padding: 12px 14px; border: 1px solid #8a8a8a; border-radius: 0; background: var(--weiss); }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--schwarz); }
.formular textarea { resize: vertical; min-height: 120px; }
.formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formular .zustimmung { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; font-size: 14px; line-height: 1.5; }
.formular .zustimmung input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--akzent); }
.formular button { justify-self: start; font: inherit; font-weight: 700; font-size: 16px; padding: .9em 2.2em; background: var(--akzent); color: var(--schwarz); border: 2px solid var(--schwarz); cursor: pointer; }
.formular button:hover { background: var(--schwarz); color: var(--akzent); }
.meldung { display: none; padding: 14px 18px; margin: 16px 0; border-left: 4px solid; font-weight: 400; }
.meldung:target { display: block; }
.meldung.ok { background: #e8f9ee; border-color: #1f9d55; }
.meldung.fehler { background: #fdecec; border-color: #d33; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .kopf .breit { flex-wrap: wrap; min-height: 76px; }
  .menue-knopf { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menue-knopf span, .menue-knopf span::before, .menue-knopf span::after { content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--weiss); }
  .menue-knopf span { top: 21px; }
  .menue-knopf span::before { left: 0; top: -8px; }
  .menue-knopf span::after { left: 0; top: 8px; }
  #menue:focus-visible + .menue-knopf { outline: 2px solid var(--akzent); }
  .kopf nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 24px; }
  .kopf nav a { padding: 8px 0; font-size: 17px; }
  .kopf nav .knopf { margin: 12px 0 0; padding: .8em 1.4em; }
  #menue:checked ~ nav { display: flex; }

  section { padding: 64px 0; }
  .zwei, .ueber-raster, .warum-raster, .fuss .breit { grid-template-columns: 1fr; gap: 40px; }
  .textkarte { padding: 40px 24px 40px; }
  .warum-raster { padding: 24px 24px 48px; gap: 24px; }
  .werte { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .slider { max-width: 100%; justify-self: stretch; }
  .zwischen { padding: 32px 0 80px; }
  .karte { display: block; background: var(--schwarz); }
  .karte::before { display: none; }
  .karte > img { min-height: 0; aspect-ratio: 4 / 3; }
  .karte > :not(img) { margin: 0; padding: 0 24px 12px; }
  .karte > :nth-child(2) { padding-top: 28px; }
  .karte > :last-child { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .breit { padding: 0 16px; }
  .marke span { display: none; }
  .held { min-height: 560px; background-position: 72% center; }
  .held .breit { padding-bottom: 60px; }
  .held h1 { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
  .werte { grid-template-columns: 1fr; }
  .formular .reihe { grid-template-columns: 1fr; }
  .fuss-kontakt { padding-left: 40px; }
  .fuss-kontakt .strich { left: 4px; width: 6px; height: 70px; }
  .fuss .gross { overflow-wrap: anywhere; }
}
