/* STUDIO WIDNAU – Übergangsseite */

@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-semibold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-extrabold.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a1118;
  --panel: #111c26;
  --line: #1f2f3d;
  --blue: #3b82f6;          /* Text/Links auf dunklem Grund (Kontrast 5:1) */
  --blue-brand: #2563eb;    /* Flächen, Logo */
  --orange: #ff7a1a;
  --text: #9fb0bd;
  --bright: #eef4f8;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg) radial-gradient(60rem 30rem at 80% -10%, rgba(37, 99, 235, .30), transparent 70%) no-repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }

.skip { position: absolute; left: -999rem; top: 0; background: var(--bright); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Kopf */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.site-header .status { justify-self: end; }
.lang { display: flex; align-items: center; font: .75rem var(--mono); letter-spacing: .08em; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.lang a { color: var(--text); padding: .2rem .6rem; border-radius: 99px; transition: color .2s, background .2s; }
.lang a:hover { color: var(--bright); text-decoration: none; }
.lang a[aria-current] { color: var(--bright); background: var(--panel); box-shadow: inset 0 -2px 0 -1px var(--orange); }
.logo img { width: clamp(280px, 30vw, 350px); }
@media (max-width: 40rem) {
  .site-header .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 2.75rem; padding-block: 1.75rem .5rem; }
  .lang { display: none; }
  .logo img { width: 100%; }
  .status { align-self: center; }
}
.status { font: 1.2rem var(--mono); color: var(--bright); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1.4rem .5rem .65rem; display: inline-flex; align-items: center; gap: .8rem; margin: 0; position: relative; }
.status { white-space: nowrap; }
.status .cd { width: 2rem; height: 2rem; flex: none; animation: rot 2.4s linear infinite; }
.status .roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: bottom; margin-left: -.15rem; }
.status .roll span { display: block; color: var(--orange); animation: roll 8s cubic-bezier(.7, 0, .3, 1) infinite; }
.status .still { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes roll { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-100%); } 50%, 70% { transform: translateY(-200%); } 75%, 95% { transform: translateY(-300%); } 100% { transform: translateY(-400%); } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 8vw, 6rem) 3rem; display: grid; gap: 2.5rem; align-items: center; }
.kicker { font: .875rem var(--mono); color: var(--blue); margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; color: var(--bright); font-weight: 800; margin: 0 0 1.25rem; }
h1 em { font-style: normal; color: var(--blue); white-space: nowrap; }
h1 .dot { color: var(--orange); }
.lead { font-size: 1.125rem; max-width: 38rem; margin: 0 0 1.75rem; }
.notice { font: .9375rem/1.6 var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; max-width: 38rem; margin: 0; }
.notice b { color: var(--orange); font-weight: 400; }
.visual { justify-self: center; width: 100%; max-width: 31rem; height: auto; }

/* Leistungen */
h2 { font: 400 .875rem var(--mono); color: var(--blue); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1.5rem; }
#leistungen, #kontakt { color: var(--orange); }
.grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card { background: var(--bg); padding: 1.6rem 1.6rem 1.8rem; transition: background .2s; }
.card:hover { background: var(--panel); }
.card svg { display: block; width: 100%; height: auto; margin-bottom: 1.25rem; }
.card span { font: .75rem var(--mono); color: var(--orange); }
.card h3 { margin: .35rem 0 .5rem; font-size: 1.125rem; color: var(--bright); font-weight: 600; }
.card p { margin: 0; font-size: .9375rem; }

/* Grafik-Animationen (SVG) */
.float { animation: float 5s ease-in-out infinite; }
.float.d2 { animation-delay: -1.6s; }
.float.d3 { animation-delay: -3.2s; }
.blink { animation: blink 1s steps(1) infinite; }
.dots circle { animation: dots 1.2s infinite; }
.dots circle:nth-child(2) { animation-delay: .2s; }
.dots circle:nth-child(3) { animation-delay: .4s; }
.orbit { transform-origin: 210px 160px; animation: rot 40s linear infinite; }
.led { animation: led 1.4s steps(1) infinite; }
.led.l2 { animation-delay: -.5s; animation-duration: 2.1s; }
.led.l3 { animation-delay: -.9s; animation-duration: .9s; }
.dash { animation: dash 1.2s linear infinite; }
.draw { stroke-dasharray: 100; animation: draw 5s ease-in-out infinite; }
.pulse { transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.wave rect { transform-box: fill-box; transform-origin: center bottom; animation: wave 1.1s ease-in-out infinite; }
.wave rect:nth-child(2) { animation-delay: -.4s; }
.wave rect:nth-child(3) { animation-delay: -.75s; }
.wave rect:nth-child(4) { animation-delay: -.2s; }
.playhead { animation: playhead 7s linear infinite; }
.cursor { transform-box: fill-box; transform-origin: center; animation: cursor 6s ease-in-out infinite; }
.seq { animation: seq 6s ease-out infinite; }
.seq.s2 { animation-delay: .35s; }
.seq.s3 { animation-delay: .7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes led { 50% { opacity: .2; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes draw { 0% { stroke-dashoffset: 100; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(358px); } }
@keyframes cursor { 0%, 15% { transform: translate(120px, 60px); } 45%, 70% { transform: translate(0, 0); } 78% { transform: translate(0, 0) scale(.9); } 100% { transform: translate(120px, 60px); } }
@keyframes seq { 0% { opacity: 0; transform: translateY(8px); } 12%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .status .roll { display: none; }
  .status .still { position: static; width: auto; height: auto; clip-path: none; color: var(--orange); }
}

/* Kontakt */
.contact { margin-block: 3.5rem; background: linear-gradient(135deg, rgba(37, 99, 235, .20), rgba(37, 99, 235, .05) 60%) var(--panel); border: 1px solid rgba(59, 130, 246, .28); border-left: 3px solid var(--orange); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; }
.contact h2 { margin-bottom: .75rem; }
.contact a { color: var(--bright); font-weight: 600; }
.contact .big { font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.3; color: var(--bright); font-weight: 600; margin: 0; }
address { font-style: normal; }

/* Impressum */
.legal { padding-block: clamp(2rem, 6vw, 4rem) 3rem; display: grid; gap: 2.5rem; }
.legal h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; margin: 0; }
.legal dt { font: .8125rem var(--mono); color: var(--blue); margin-top: .9rem; }
.legal dd { margin: 0; color: var(--bright); }
.legal dd small { color: var(--text); font-size: .875rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2rem); }
.panel > :first-child { margin-top: 0; }
.plain { margin: 0; padding-left: 1.1rem; }
.plain li { margin-bottom: .35rem; }
.plain strong { color: var(--bright); font-weight: 600; }

/* Rechtstexte (Datenschutz, Nutzungsbedingungen) */
/* gleiche Seitenränder wie Startseite/Impressum (.wrap); nur die Zeilenlänge des Textes ist begrenzt */
.prose { padding-block: clamp(2rem, 6vw, 4rem) 3rem; }
.prose > * { max-width: 50rem; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.prose h2 { font: 600 1.25rem/1.3 "Open Sans", Arial, sans-serif; color: var(--bright); text-transform: none; letter-spacing: 0; margin: 2.5rem 0 .75rem; }
.prose p { margin: 0 0 1rem; }
.prose code { font: .875em var(--mono); color: var(--orange); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; white-space: nowrap; }
.prose small { color: var(--text); font-size: .8125rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.prose th { font: 400 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); text-align: left; background: var(--panel); }
.prose th, .prose td { padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; }

/* Cookie-Consent (Runtime: assets/consent/) im Look der Seite */
.cc-root { --cc-bg: var(--panel) !important; --cc-fg: var(--bright) !important; --cc-accent: var(--orange) !important; font: 15px/1.6 "Open Sans", Arial, sans-serif; }
.cc-root h2 { font: 800 1.35rem/1.2 "Open Sans", Arial, sans-serif; color: var(--bright); text-transform: none; letter-spacing: -.01em; }
.cc-root p, .cc-root dd, .cc-root summary { color: var(--text); }
.cc-root .cc-eyebrow { font-family: var(--mono); color: var(--orange); }
.cc-root .cc-banner, .cc-root .cc-dialog, .cc-root fieldset, .cc-root .cc-service { border-color: var(--line); }
.cc-root .cc-banner { bottom: 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.cc-root .cc-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; overflow: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.cc-root .cc-dialog::backdrop { background: rgba(10, 17, 24, .7); }
.cc-root button { background: transparent; color: var(--bright); border-color: var(--line); transition: background .2s, border-color .2s; }
.cc-root button:hover { background: var(--bg); border-color: var(--blue); box-shadow: none; }
/* Annehmen und Ablehnen bewusst gleich gewichtet (keine Hervorhebung einer Option) */
.cc-root .cc-languages button { min-height: 0; font: .75rem var(--mono); letter-spacing: .08em; }
.cc-root a { color: var(--text); }
.cc-root a:hover { color: var(--bright); }
.cc-root input[type=checkbox] { accent-color: var(--orange); }
.cc-root :focus-visible { outline: 2px solid var(--blue); }
.cc-root .cc-launcher { display: none; }
.cc-placeholder { background: var(--panel); color: var(--text); border-color: var(--line); margin: 1rem; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); font-size: .8125rem; padding-block: 1.5rem 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: flex-end; }
.site-footer p { margin: 0; }
.legal-links { text-align: right; line-height: 1.9; }
@media (max-width: 40rem) { .legal-links { text-align: left; } }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--bright); }

@media (min-width: 40rem) {
  .legal dl { grid-template-columns: 12rem 1fr; }
  .legal dt { margin-top: .2rem; }
  .legal dt, .legal dd { padding-block: .45rem; border-top: 1px solid var(--line); }
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.5fr 1fr; }
  .contact { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .legal { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
