/* UP Multimedia Service – Website
   Farben: Dunkelblau #0F2A44, Orange #F59E0B, Hintergrund #F5F7FA
   Schrift: Systemschriften (keine externen Schriftdienste, DSGVO-freundlich) */

:root {
  --blau: #0F2A44;
  --blau-hell: #D3DEEA;
  --orange: #F59E0B;
  --orange-text: #1A1205;
  --text: #16212E;
  --text-grau: #4A5868;
  --linie: #DDE3EA;
  --grund: #F5F7FA;
  --weiss: #FFFFFF;
  --gruen-rand: #15803D; --gruen-bg: #DCFCE7; --gruen-text: #14532D;
  --gelb-rand: #D97706;  --gelb-bg: #FEF3C7;  --gelb-text: #78350F;
  --hblau-bg: #DBEAFE;   --hblau-text: #1E3A8A;
  --grau-bg: #E7ECF2;    --grau-text: #334155;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--grund);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:hover { color: #C2410C; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0; }

.container { max-width: 908px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.container.section { padding-left: 24px; padding-right: 24px; }
.lead { font-size: 17px; color: var(--text-grau); max-width: 720px; line-height: 1.6; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--weiss); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Kopfzeile */
.site-header { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }
.site-header .container { position: relative; }
.menu-knopf { display: none; width: 48px; height: 48px; margin-bottom: 4px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-knopf span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--blau); transition: transform .2s, opacity .2s; }
.menu-knopf:hover, .menu-knopf:focus-visible { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px rgba(255,140,0,.45); }
.menu-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Menü nebeneinander, solange es in eine Zeile passt */
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--orange); }
/* Menü als Dropdown mit drei Strichen, sobald es umbrechen würde */
.site-header.eng .menu-knopf { display: flex; }
.site-header.eng .nav { display: none; position: absolute; top: calc(100% + 1px); right: 24px; min-width: 240px; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; background: var(--weiss); border: 1px solid var(--linie); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(15,42,68,.18); padding: 8px 0; font-size: 16px; z-index: 60; }
.site-header.eng .nav.offen { display: flex; }
.site-header.eng .nav a { padding: 12px 24px; }
.site-header.eng .nav a:hover, .site-header.eng .nav a:focus-visible { background: #EEF3F8; outline: none; }

/* Buttons und Marken */
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 8px; border: 2px solid transparent; font-size: 16px; cursor: pointer; }
.btn-orange { background: var(--orange); color: var(--orange-text); }
.btn-orange:hover { background: #FBBF24; color: var(--orange-text); }
.btn-hell { border-color: var(--weiss); color: var(--weiss); }
.btn-hell:hover { background: rgba(255,255,255,.12); color: var(--weiss); }
.btn-blau { background: var(--blau); color: var(--weiss); }
.btn-blau:hover { background: #1B3D5F; color: var(--weiss); }
.btn-rand { border-color: var(--blau); color: var(--blau); }
.btn-klein { font-size: 14px; padding: 10px 16px; }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 16px; }

.marke { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.marke-verfuegbar { background: var(--gruen-bg); color: var(--gruen-text); }
.marke-arbeit { background: var(--gelb-bg); color: var(--gelb-text); }
.marke-vorschau { background: var(--hblau-bg); color: var(--hblau-text); }
.marke-geplant { background: var(--grau-bg); color: var(--grau-text); }
.marke-orange { background: var(--orange); color: var(--orange-text); padding: 6px 12px; }

/* Einstieg */
.hero { background: var(--blau); color: var(--weiss); }
.hero .container { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); text-align: center; }
.hero-reihe { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-logo { flex: 0 1 520px; background: var(--weiss); border-radius: 16px; padding: 24px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.hero-reihe { justify-content: center; }
.hero-text { flex: 0 1 860px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-text .btn-reihe { justify-content: center; }
.hero-text .marke { align-self: center; }
.hero-text p { font-size: 19px; line-height: 1.6; color: var(--blau-hell); }

/* Lernprogramme */
.kopf-reihe { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 40px; }
.kopf-reihe > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.kopf-reihe > .bild-knopf { flex: 1 1 420px; }

.fokus { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.fokus-text { min-width: 0; flex: 1 1 460px; display: flex; flex-direction: column; gap: 12px; }
.fokus-text ul { margin: 0; padding-left: 22px; line-height: 1.8; }
.fokus-bild { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.bildunterschrift { font-size: 14px; color: var(--text-grau); }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.karte p { font-size: 15px; color: var(--text-grau); }
.karte-verfuegbar { border: 2px solid var(--gruen-rand); }
.karte-arbeit { border: 2px solid var(--gelb-rand); }
.karte .hinweis { font-size: 15px; font-weight: 600; color: var(--hblau-text); }
.karte .klein { font-size: 14px; color: var(--text-grau); }
.vorschau { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--linie); }
.vorschau img { width: 100%; height: 150px; object-fit: cover; }

/* Bilder, die sich vergrößern lassen */
.bild-knopf { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.bild-knopf img { border-radius: var(--radius); border: 1px solid var(--linie); box-shadow: 0 6px 20px rgba(15,42,68,.15); }
.bild-knopf:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--radius); }

/* E-CAD-Zubi */
.ecad { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.ecad .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ecad figure { flex: 1 1 420px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ecad-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.ecad-text ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }

/* Zielgruppen */
.drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.drei .karte { padding: 28px; }

/* Über uns */
.ueber { background: #E9EEF4; }
.ueber .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.foto-platz { flex: 0 0 220px; height: 220px; border-radius: 50%; background: #CBD5E1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--grau-text); font-size: 14px; padding: 16px; overflow: hidden; }
.foto-platz img { width: 100%; height: 100%; object-fit: cover; }
/* Foto als Hintergrund, nicht als <img>: wird von Bildsuchen und einfachen Bild-Sammlern nicht erfasst */
.foto-portrait { background: #CBD5E1 url("../bilder/ueber-portrait.webp") 6% 50% / 112% auto no-repeat; box-shadow: 0 8px 24px rgba(15,42,68,.18); border: 4px solid var(--weiss); -webkit-user-select: none; user-select: none; }
.ueber-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.ueber-text p { font-size: 17px; line-height: 1.7; color: var(--grau-text); }
.ueber-fakten { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ueber-fakten li { background: var(--weiss); border-radius: 12px; border-top: 4px solid var(--orange); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 14px rgba(15,42,68,.08); color: var(--grau-text); font-size: 15px; line-height: 1.5; }
.ueber-fakten .fakt-titel { font-size: 13px; font-weight: 700; text-transform: none; color: var(--orange); }
.ueber-fakten .fakt-zahl { font-size: 22px; font-weight: 700; color: var(--blau); line-height: 1.2; }
.ueber-ziel { flex: 1 1 100%; margin: 0; font-size: 17px; line-height: 1.7; color: var(--grau-text); }

/* Kontakt */
.kontakt .container { display: flex; flex-wrap: wrap; gap: 48px; }
.kontakt .container > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
address { font-style: normal; font-size: 16px; line-height: 1.8; }

/* Fußzeile */
.site-footer { background: var(--blau); color: var(--blau-hell); }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.site-footer a { color: var(--weiss); }
.footer-logo { display: flex; align-items: center; gap: 16px; }
.footer-logo span:first-child { background: var(--weiss); border-radius: 8px; padding: 6px 10px; display: flex; }
.footer-logo img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* Großansicht */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,20,35,.88); display: none; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.lightbox.offen { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: var(--weiss); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--weiss); color: var(--blau); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox .lb-pfeil { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 34px; font-weight: 700; opacity: .92; }
.lightbox .lb-pfeil:hover, .lightbox .lb-pfeil:focus-visible { opacity: 1; outline: 3px solid var(--orange); outline-offset: 2px; }
.lightbox .lb-zurueck { left: 16px; right: auto; }
.lightbox .lb-weiter { right: 16px; }
.lightbox .lb-text { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 180px); color: #fff; font-size: 15px; text-align: center; line-height: 1.4; }
.lightbox.mit-galerie { padding: 32px 88px 56px; }

/* Geplante Funktionen */
.geplant { margin: 8px 0 16px; padding-left: 22px; font-size: 17px; line-height: 1.8; }
.geplant li::marker { color: var(--orange); }

/* Bildergalerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 16px 0 8px; padding: 0; list-style: none; }
.galerie figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.galerie img { width: 100%; height: auto; }
.galerie figcaption { font-size: 14px; color: var(--grau-text); line-height: 1.4; }

/* Rechtstexte */
.rechtstext { max-width: 908px; }
/* Am PC einheitliche Breite: Kopfzeile, Inhalt und Fußzeile 860 Pixel */
.rechtstext h1 { font-size: 36px; margin-bottom: 24px; }
.rechtstext h2 { font-size: 22px; margin: 28px 0 8px; }
.rechtstext p { margin-bottom: 12px; }
.platzhalter { background: var(--gelb-bg); padding: 2px 6px; border-radius: 4px; }

@media (max-width: 600px) {
  .brand img { height: 48px; }
  .lightbox.mit-galerie { padding: 24px 12px 64px; }
  .lightbox .lb-pfeil { top: auto; bottom: 8px; transform: none; width: 48px; height: 48px; }
  .lightbox .lb-text { max-width: calc(100% - 130px); }
  .section { padding: 48px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .site-header.eng .nav { left: 0; right: 0; min-width: 0; }
}

/* Schutz von E-Mail und Telefon: im Quelltext rückwärts, per CSS richtig herum angezeigt; JavaScript macht daraus Links */
.rw { unicode-bidi: bidi-override; direction: rtl; }

/* Geschütztes Foto: als Hintergrundbild mit Schutzschicht, nicht ziehbar, kein Kontextmenü */
.foto-geschuetzt { position: relative; background-size: cover; background-position: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.foto-geschuetzt::after { content: "© UP Multimedia Service"; position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Unterseiten und Artikel */
.brotkrumen { font-size: 14px; color: var(--text-grau); padding-top: 20px; }
.brotkrumen a { color: var(--text-grau); }
.inhalt { max-width: 908px; padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.inhalt h1 { font-size: clamp(30px, 4.5vw, 44px); }
.inhalt h2 { font-size: 26px; margin-top: 16px; }
.inhalt h3 { font-size: 20px; margin-top: 4px; }
.inhalt p, .inhalt li { font-size: 17px; line-height: 1.7; }
.inhalt ol { margin: 0; padding-left: 24px; }
.inhalt ol li { margin-bottom: 6px; }
.inhalt code { background: var(--grau-bg); padding: 1px 6px; border-radius: 4px; font-size: 15px; }
.haken { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.haken li { padding-left: 28px; position: relative; }
.haken li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--gruen-rand); border-bottom: 3px solid var(--gruen-rand); transform: rotate(-45deg); }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.abb { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.formel { font-size: 20px !important; font-weight: 600; background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--orange); border-radius: 8px; padding: 12px 18px; align-self: flex-start; }
.info-kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.artikel-meta { font-size: 14px; color: var(--text-grau); }
.karte h3 a { color: inherit; text-decoration: none; }
.karte h3 a:hover { text-decoration: underline; }
.mehr { font-weight: 600; }
.wissen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.hero .slogan { text-align: center; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--orange); margin-top: -24px; }
.tipp { display: inline-block; margin-top: 4px; font-size: 15px; color: var(--text-grau); }
kbd { font-family: inherit; font-size: 13px; font-weight: 600; background: var(--weiss); border: 1px solid #94A3B8; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); }
.faq details p { padding: 12px 0 16px; }

/* Formular */
.formular { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 600; font-size: 15px; }
.formular input[type=text], .formular input[type=email], .formular select, .formular textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #94A3B8; border-radius: 8px; background: var(--weiss); color: var(--text); width: 100%; }
.formular textarea { resize: vertical; }
.formular input:focus-visible, .formular select:focus-visible, .formular textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.einwilligung input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { background: var(--gelb-bg); border: 1px solid var(--gelb-rand); color: var(--gelb-text); border-radius: 8px; padding: 12px 16px; font-weight: 600; }
.formular button { border: 0; }

/* Hinweisfenster (z. B. Wartungsarbeiten) */
.hinweis-dlg { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15,42,68,.6); }
.hinweis-dlg.offen { display: flex; }
.hinweis-box { background: var(--weiss); border-radius: 14px; border-top: 5px solid var(--orange); max-width: 440px; width: 100%; padding: 28px 28px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 14px; }
.hinweis-box h2 { margin: 0; font-size: 22px; color: var(--blau); }
.hinweis-box p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--grau-text); }
.hinweis-box .btn { align-self: flex-end; }
