/* ==========================================================================
ipv6-speedtest.de – app.css (v1.5.14)

========================================================================== */

:root {
color-scheme: light;
--hero-deep: #073fb8;
--hero-mid: #086ee7;
--hero-bright: #18bfe3;
--hero-text: #ffffff;
--hero-soft: #f3f9ff;
--page: #f3f7fc;
--surface: #ffffff;
--surface-soft: #eef4fb;
--ink: #0a1733;
--ink-soft: #4f617e;
--ink-muted: #72829b;
--line: #d9e4f1;
--line-strong: #c7d6e8;
--primary: #0a63e8;
--primary-dark: #084bb8;
--cyan: #08a9ca;
--violet: #6855ed;
--success: #0d9f76;
--warning: #9a6000;
--danger: #b82f4b;
--danger-bg: #fff0f3;
--shadow-lg: 0 36px 90px rgba(4, 31, 87, 0.24);
--shadow-md: 0 18px 50px rgba(21, 57, 104, 0.1);
--radius-xl: 30px;
--radius-lg: 22px;
--radius-md: 15px;
--page-width: 1280px;
--phase-color: var(--primary);
--font-family-base: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-family: var(--font-family-base);
font-synthesis: none;
text-rendering: optimizeLegibility;
}

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

html {
min-width: 320px;
scroll-behavior: smooth;
background: var(--page);
}

body {
min-width: 320px;
font-family: var(--font-family-base);
margin: 0;
overflow-x: clip;
background: var(--page);
color: var(--ink);
font-size: 16px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}

@supports not (overflow: clip) {
body {
overflow-x: hidden;
}
}

body[data-test-phase="latency"] {
--phase-color: var(--violet);
}

body[data-test-phase="download"] {
--phase-color: var(--primary);
}

body[data-test-phase="upload"] {
--phase-color: var(--cyan);
}

body[data-test-phase="complete"] {
--phase-color: var(--success);
}

button,
a,
summary {
-webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
font: inherit;
}

a,
button {
color: inherit;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
margin-top: 0;
}

h1,
h2,
h3 {
text-wrap: balance;
}

p {
text-wrap: pretty;
}

svg {
display: block;
max-width: 100%;
}

.page-width {
width: min(calc(100% - 48px), var(--page-width));
margin-inline: auto;
}

/* --- Reset-Ergaenzungen, Skip-Link, Noscript ------------------------------- */
.skip-link {
position: fixed;
z-index: 1000;
top: 12px;
left: 12px;
padding: 10px 15px;
border-radius: 10px;
background: #ffffff;
color: var(--primary-dark);
font-weight: 800;
text-decoration: none;
box-shadow: var(--shadow-md);
transform: translateY(-160%);
transition: transform 160ms ease;
}

.skip-link:focus {
transform: translateY(0);
}

.noscript-message {
padding: 14px 20px;
background: #fff4d7;
color: var(--warning);
font-weight: 750;
text-align: center;
}

/* --- Hero-Flaeche und Site-Header ------------------------------------------ */
.hero-surface {
position: relative;
isolation: isolate;
overflow: clip;
background: radial-gradient(circle at 8% 18%, rgba(177, 225, 255, 0.28), transparent 24rem), radial-gradient(circle at 88% 52%, rgba(209, 255, 255, 0.22), transparent 30rem), linear-gradient(124deg, var(--hero-deep) 0%, var(--hero-mid) 54%, var(--hero-bright) 100%);
color: var(--hero-text);
}

@supports not (overflow: clip) {
.hero-surface {
overflow: hidden;
}
}

.hero-mesh {
position: absolute;
inset: 0 0 auto;
z-index: -1;
height: 900px;
opacity: 0.3;
background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
background-size: 54px 54px;
-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.86) 48%, transparent 100%);
mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.86) 48%, transparent 100%);
pointer-events: none;
}

.site-header {
position: relative;
z-index: 10;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 2rem;
min-height: 92px;
}

/* --- Marke / Logo ---------------------------------------------------------- */
.brand {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 0.8rem;
font-weight: 800;
letter-spacing: -0.035em;
text-decoration: none;
}

.brand--image {
max-width: min(100%, 300px);
padding: 0.34rem 0.58rem;
border: 1px solid rgba(255, 255, 255, 0.52);
border-radius: 14px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 10px 28px rgba(3, 25, 67, 0.15);
}

.brand-logo-image {
display: block;
width: clamp(188px, 19vw, 252px);
max-width: 100%;
height: auto;
aspect-ratio: 2174 / 255;
object-fit: contain;
}

.brand-mark {
position: relative;
display: inline-grid;
width: 42px;
height: 42px;
flex: 0 0 auto;
place-items: center;
}

.brand-orbit,
.brand-orbit::before {
position: absolute;
inset: 1px;
border: 1.5px solid rgba(183, 230, 255, 0.76);
border-radius: 50%;
content: "";
}

.brand-orbit::before {
inset: 8px;
border-color: rgba(255, 255, 255, 0.48);
}

.brand-core {
width: 8px;
height: 8px;
border-radius: 50%;
background: #74f0f3;
box-shadow: 0 0 18px rgba(116, 240, 243, 0.92);
}

.brand-name {
color: #ffffff;
font-size: 1.2rem;
white-space: nowrap;
}

.brand-name span {
color: #d5f3ff;
}

.site-nav {
display: flex;
align-items: center;
justify-content: center;
gap: clamp(1.2rem, 3vw, 2.25rem);
color: #ffffff;
font-size: 0.9rem;
font-weight: 650;
}

.site-nav a {
position: relative;
padding-block: 0.5rem;
text-decoration: none;
}

.site-nav a::after {
position: absolute;
right: 0;
bottom: 0.15rem;
left: 0;
height: 2px;
border-radius: 999px;
background: #7cecf1;
content: "";
transform: scaleX(0);
transform-origin: center;
transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
transform: scaleX(1);
}

.header-proof,
.protocol-badge {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
}

.header-proof {
min-height: 38px;
padding: 0.55rem 0.85rem;
border: 1px solid rgba(220, 250, 255, 0.48);
background: rgba(4, 48, 95, 0.34);
color: #ffffff;
backdrop-filter: blur(10px);
}

.header-proof > span,
.protocol-badge > span {
width: 7px;
height: 7px;
border-radius: 50%;
background: #64eee2;
box-shadow: 0 0 0 5px rgba(100, 238, 226, 0.12), 0 0 14px rgba(100, 238, 226, 0.82);
}

/* --- Hero-Inhalt, Status und Teilen-Icons ---------------------------------- */
.hero {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 1.08fr) minmax(420px, 520px);
align-items: center;
column-gap: clamp(3rem, 7vw, 7rem);
row-gap: 2.2rem;
min-height: 670px;
padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(5.5rem, 9vw, 8rem);
}

.hero-copy,
.speedtest-console {
min-width: 0;
}

.hero-copy {
max-width: 720px;
}

.eyebrow {
margin-bottom: 0.8rem;
color: var(--primary);
font-size: 0.76rem;
font-weight: 850;
letter-spacing: 0.14em;
text-transform: uppercase;
}

.eyebrow-on-blue {
color: #bafcff;
}

h1 {
max-width: 760px;
margin-bottom: 0.8rem;
color: #ffffff;
font-size: clamp(3.6rem, 6vw, 6.7rem);
font-weight: 860;
line-height: 0.91;
letter-spacing: -0.072em;
}

.hero-claim {
margin-bottom: 1.25rem;
color: #eaf4ff;
font-size: clamp(1.45rem, 2.4vw, 2.15rem);
font-weight: 720;
letter-spacing: -0.035em;
}

.hero-lead {
max-width: 650px;
margin-bottom: 1.55rem;
color: var(--hero-soft);
font-size: clamp(1.04rem, 1.45vw, 1.2rem);
}

.hero-benefits {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
margin: 0 0 1.7rem;
padding: 0;
list-style: none;
}

.hero-benefits li {
display: inline-flex;
min-width: 0;
min-height: 38px;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.8rem;
border: 1px solid rgba(224, 246, 255, 0.34);
border-radius: 999px;
background: rgba(4, 35, 89, 0.22);
color: #ffffff;
font-size: 0.84rem;
font-weight: 650;
}

.hero-benefits li > span {
color: #bafcff;
font-size: 1rem;
}

.hero-share {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
justify-self: center;
margin-top: clamp(0.3rem, 1vw, 1.5rem);
}

.hero-share-icons {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.62rem;
}

.hero-share-link {
display: inline-flex;
width: 46px;
height: 46px;
align-items: center;
justify-content: center;
border: 1px solid rgba(255, 255, 255, 0.58);
border-radius: 999px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 10px 24px rgba(4, 30, 78, 0.2);
transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-share-link:hover,
.hero-share-link:focus-visible {
background: #ffffff;
box-shadow: 0 13px 30px rgba(4, 30, 78, 0.28);
transform: translateY(-2px);
}

.hero-share-link img {
display: block;
width: 24px;
height: 24px;
object-fit: contain;
}

.ipv6-status {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 0.9rem;
width: min(100%, 620px);
padding: 1rem 1.1rem;
border: 1px solid rgba(222, 244, 255, 0.38);
border-radius: var(--radius-md);
background: rgba(5, 31, 75, 0.36);
backdrop-filter: blur(12px);
}

.status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ffc45e;
box-shadow: 0 0 0 7px rgba(255, 196, 94, 0.12);
}

.ipv6-status[data-status="checking"] .status-indicator {
animation: status-pulse 1.5s ease-in-out infinite;
}

.ipv6-status[data-status="active"] .status-indicator {
background: #65eed5;
box-shadow: 0 0 0 7px rgba(101, 238, 213, 0.12), 0 0 22px rgba(101, 238, 213, 0.55);
}

.ipv6-status[data-status="unavailable"] .status-indicator {
background: #ff8ca0;
box-shadow: 0 0 0 7px rgba(255, 140, 160, 0.12);
}

.status-copy {
min-width: 0;
}

.status-copy strong,
.status-copy small {
display: block;
}

.status-copy strong {
color: #ffffff;
font-size: 0.95rem;
}

.status-copy small {
margin-top: 0.2rem;
overflow-wrap: anywhere;
color: rgba(244, 249, 255, 0.82);
font-size: 0.8rem;
}

/* --- Messkonsole (Gauge, Phasen, Fortschritt, Fehler) ---------------------- */
.speedtest-console {
--progress: 0;
position: relative;
width: 100%;
max-width: 520px;
justify-self: end;
padding: clamp(1.4rem, 2.6vw, 2rem);
border: 1px solid rgba(255, 255, 255, 0.82);
border-radius: var(--radius-xl);
background: rgba(255, 255, 255, 0.97);
color: var(--ink);
box-shadow: var(--shadow-lg);
backdrop-filter: blur(18px);
}

.speedtest-console::before {
position: absolute;
top: -1px;
right: 10%;
left: 10%;
height: 3px;
border-radius: 0 0 999px 999px;
background: linear-gradient(90deg, transparent, #7ff5f2 18%, #4b9cff 55%, #7d67ff 82%, transparent);
content: "";
}

.console-head {
display: flex;
min-width: 0;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}

.console-head > div {
min-width: 0;
}

.console-kicker {
display: block;
margin-bottom: 0.18rem;
color: var(--ink-muted);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.console-head strong {
display: block;
overflow-wrap: anywhere;
color: var(--ink);
font-size: 0.98rem;
}

.protocol-badge {
min-height: 34px;
flex: 0 0 auto;
padding: 0.45rem 0.72rem;
border: 1px solid #c9dcf5;
background: #edf5ff;
color: #285590;
}

.protocol-badge > span {
width: 6px;
height: 6px;
background: var(--success);
box-shadow: 0 0 0 4px rgba(13, 159, 118, 0.1);
}

.gauge {
position: relative;
width: min(100%, 390px);
margin: 1.2rem auto 0;
aspect-ratio: 360 / 205;
}

.gauge-svg {
width: 100%;
height: 100%;
overflow: visible;
}

.gauge-track,
.gauge-value {
fill: none;
stroke-linecap: round;
stroke-width: 18;
}

.gauge-track {
stroke: #e5edf7;
}

.gauge-value {
stroke: url(#gauge-gradient);
stroke-dasharray: 100;
stroke-dashoffset: 100;
filter: drop-shadow(0 8px 9px rgba(25, 119, 230, 0.16));
transition: stroke-dashoffset 180ms linear;
}

.gauge-dot {
fill: #ffffff;
stroke: var(--phase-color);
stroke-width: 4;
transition: cx 180ms linear, cy 180ms linear, stroke 180ms ease;
}

.gauge-readout {
position: absolute;
inset: 42% 0 auto;
display: flex;
min-width: 0;
align-items: baseline;
justify-content: center;
gap: 0.55rem;
text-align: center;
padding-inline: 1rem;
}

.live-value {
max-width: none;
overflow: visible;
color: var(--ink);
font-size: clamp(3.25rem, 5vw, 5rem);
font-variant-numeric: tabular-nums;
font-weight: 860;
line-height: 1;
letter-spacing: -0.075em;
white-space: nowrap;
padding-inline-end: 0.08em;
}

.live-unit {
flex: 0 0 auto;
color: var(--ink-muted);
font-size: 0.8rem;
font-weight: 750;
}

.phase-track {
display: grid;
grid-template-columns: auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto;
align-items: center;
gap: 0.5rem;
margin-top: 0.2rem;
}

.phase-step {
display: grid;
justify-items: center;
gap: 0.32rem;
color: var(--ink-muted);
}

.phase-step > span {
display: grid;
width: 27px;
height: 27px;
place-items: center;
border: 1px solid var(--line-strong);
border-radius: 50%;
background: #ffffff;
font-size: 0.69rem;
font-weight: 850;
}

.phase-step strong {
font-size: 0.69rem;
}

.phase-step[data-state="active"] {
color: var(--phase-color);
}

.phase-step[data-state="active"] > span {
border-color: var(--phase-color);
background: var(--phase-color);
color: #ffffff;
box-shadow: 0 0 0 5px color-mix(in srgb, var(--phase-color) 12%, transparent);
}

.phase-step[data-state="complete"] {
color: var(--success);
}

.phase-step[data-state="complete"] > span {
border-color: var(--success);
background: var(--success);
color: #ffffff;
}

.phase-line {
height: 1px;
margin-top: -1.2rem;
background: var(--line);
}

.progress-shell {
height: 7px;
margin-top: 1.1rem;
overflow: hidden;
border-radius: 999px;
background: #e8eff8;
}

.progress-bar {
width: calc(var(--progress) * 100%);
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--phase-color), #58cbe2);
transition: width 180ms linear, background-color 180ms ease;
}

.test-actions {
display: grid;
gap: 0.7rem;
margin-top: 1rem;
}

/* --- Buttons --------------------------------------------------------------- */
.button {
display: inline-flex;
width: 100%;
min-height: 52px;
align-items: center;
justify-content: center;
padding: 0.8rem 1.25rem;
border: 0;
border-radius: 13px;
cursor: pointer;
font-weight: 820;
transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
transform: translateY(-1px);
}

.button:disabled {
cursor: wait;
opacity: 0.56;
}

.button-primary {
background: linear-gradient(110deg, #1764df 0%, #1686dc 72%, #087fa4 100%);
color: #ffffff;
box-shadow: 0 14px 30px rgba(9, 94, 205, 0.24);
}

.button-secondary {
border: 1px solid var(--line-strong);
background: #ffffff;
color: var(--ink);
}

.error-box {
margin-top: 0.85rem;
padding: 0.9rem 1rem;
border: 1px solid #f1b9c5;
border-radius: 13px;
background: var(--danger-bg);
color: var(--danger);
}

.error-box strong,
.error-box p {
overflow-wrap: anywhere;
}

.error-box strong {
display: block;
font-size: 0.88rem;
}

.error-box p {
margin: 0.25rem 0 0;
font-size: 0.8rem;
}

.console-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 0.8rem;
color: var(--ink-muted);
font-size: 0.7rem;
}

/* --- Ergebnisbereich und Messwertkarten ------------------------------------ */
.results-section {
padding-block: clamp(4.8rem, 8vw, 7.5rem);
background: var(--page);
color: var(--ink);
outline: none;
}

.section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 2rem;
margin-bottom: 2rem;
}

.section-heading h2,
.content-intro h2,
.explain-layout h2,
.faq-layout h2 {
margin-bottom: 0;
color: var(--ink);
font-size: clamp(2.25rem, 4vw, 4rem);
font-weight: 850;
line-height: 1.02;
letter-spacing: -0.06em;
}

.result-state {
flex: 0 0 auto;
max-width: 300px;
padding: 0.55rem 0.85rem;
border: 1px solid var(--line);
border-radius: 999px;
background: #ffffff;
color: var(--ink-soft);
font-size: 0.75rem;
font-weight: 800;
}

.results-section[data-has-result="true"] .result-state {
border-color: #b8eadb;
background: #e8faf4;
color: #08785b;
}

.metric-grid {
display: grid;
grid-template-columns: minmax(290px, 1.35fr) minmax(290px, 1.35fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr);
gap: 1rem;
}

.metric-card {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 0.9rem;
min-width: 0;
min-height: 170px;
padding: 1.35rem;
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 9px 28px rgba(25, 58, 105, 0.05);
}

.metric-card::after {
position: absolute;
top: -50px;
right: -50px;
width: 118px;
height: 118px;
border-radius: 50%;
background: rgba(10, 99, 232, 0.07);
content: "";
}

.metric-card-upload::after {
background: rgba(8, 169, 202, 0.08);
}

.metric-icon {
position: relative;
z-index: 1;
display: grid;
width: 36px;
height: 36px;
place-items: center;
border-radius: 11px;
background: #eaf3ff;
color: var(--primary);
font-weight: 900;
}

.metric-card-upload .metric-icon {
background: #e5fafc;
color: #098da7;
}

.metric-icon-wave {
background: #f0edff;
color: var(--violet);
}

.metric-card > div {
min-width: 0;
}

.metric-label,
.metric-card strong,
.metric-card small {
display: block;
overflow-wrap: anywhere;
}

.metric-label {
color: var(--ink-soft);
font-size: 0.77rem;
font-weight: 800;
text-transform: uppercase;
}

.metric-card strong {
min-height: 1.15em;
margin-top: 0.55rem;
overflow-wrap: normal;
color: var(--ink);
font-size: clamp(1.8rem, 3vw, 2.65rem);
font-variant-numeric: tabular-nums;
font-weight: 850;
line-height: 1.05;
letter-spacing: -0.055em;
white-space: nowrap;
}

.metric-card small {
margin-top: 0.5rem;
color: var(--ink-muted);
font-size: 0.73rem;
}

/* --- IPv6-Nachweis / Verbindungsdetails ------------------------------------ */
.connection-panel {
display: grid;
grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.7fr);
gap: 1.2rem;
align-items: stretch;
margin-top: 1.1rem;
padding: 1.25rem;
border-radius: var(--radius-lg);
background: linear-gradient(120deg, #082354, #0b397a);
color: #ffffff;
box-shadow: 0 18px 48px rgba(9, 40, 93, 0.14);
}

.connection-proof {
display: flex;
min-width: 0;
align-items: center;
gap: 0.9rem;
}

.connection-orbit {
position: relative;
display: grid;
width: 46px;
height: 46px;
flex: 0 0 auto;
place-items: center;
border: 1px solid rgba(132, 232, 240, 0.45);
border-radius: 50%;
}

.connection-orbit::before {
position: absolute;
inset: 8px;
border: 1px solid rgba(132, 232, 240, 0.28);
border-radius: 50%;
content: "";
}

.connection-orbit > span {
width: 8px;
height: 8px;
border-radius: 50%;
background: #62eadf;
box-shadow: 0 0 14px rgba(98, 234, 223, 0.8);
}

.connection-proof > div {
min-width: 0;
}

.connection-kicker {
display: block;
color: #79eee9;
font-size: 0.68rem;
font-weight: 850;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.connection-proof strong {
display: block;
margin-top: 0.2rem;
overflow-wrap: anywhere;
font-size: 0.9rem;
}

.connection-details {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 0;
overflow: hidden;
border: 1px solid rgba(211, 230, 255, 0.12);
border-radius: 13px;
}

.connection-details > div {
min-width: 0;
padding: 0.75rem 0.9rem;
border-right: 1px solid rgba(211, 230, 255, 0.1);
border-bottom: 1px solid rgba(211, 230, 255, 0.1);
}

.connection-details > div:nth-child(2n) {
border-right: 0;
}

.connection-details > div:nth-last-child(-n + 2) {
border-bottom: 0;
}

.connection-details dt {
color: rgba(255, 255, 255, 0.56);
font-size: 0.65rem;
font-weight: 750;
text-transform: uppercase;
}

.connection-details dd {
margin: 0.25rem 0 0;
overflow-wrap: anywhere;
color: #ffffff;
font-size: 0.78rem;
font-variant-numeric: tabular-nums;
font-weight: 700;
}

/* --- Visuelle Auflockerungen zwischen Inhaltsbereichen ---------------------- */
.section-visual {
margin-block: 0;
}

.share-section:not([hidden]) + .section-visual--lifestyle {
margin-top: clamp(2rem, 4vw, 3.5rem);
}

.section-visual img {
display: block;
width: 100%;
height: auto;
border: 1px solid rgba(107, 150, 207, 0.2);
border-radius: clamp(20px, 2.5vw, 32px);
background: #f7faff;
box-shadow: 0 24px 64px rgba(25, 68, 126, 0.12);
}

/* --- Aufklaerung: Warum ein eigener IPv6-Test ------------------------------ */
.why-ipv6-section {
padding-block: clamp(4.5rem, 8vw, 7rem);
border-top: 1px solid #dce7f4;
background: radial-gradient(circle at 10% 10%, rgba(24, 126, 242, 0.09), transparent 36%), linear-gradient(180deg, #f7faff 0%, #eef5ff 100%);
}

.why-ipv6-layout {
display: grid;
grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
gap: clamp(2rem, 6vw, 5.5rem);
align-items: center;
}

.why-ipv6-copy {
min-width: 0;
}

.why-ipv6-copy h2 {
max-width: 760px;
margin-bottom: 1.2rem;
}

.why-ipv6-copy p {
max-width: 760px;
color: var(--ink-soft);
font-size: clamp(1rem, 1.35vw, 1.12rem);
line-height: 1.75;
}

.why-ipv6-copy p + p {
margin-top: 1rem;
}

.why-ipv6-box {
min-width: 0;
overflow: hidden;
padding: clamp(1.35rem, 2.8vw, 2rem);
border: 1px solid rgba(108, 183, 255, 0.34);
border-radius: var(--radius-xl);
background: radial-gradient(circle at 88% 8%, rgba(37, 222, 231, 0.15), transparent 34%), linear-gradient(145deg, #071a3d 0%, #0a3d88 58%, #12336f 100%);
box-shadow: 0 26px 70px rgba(22, 67, 133, 0.2);
color: #ffffff;
}

.why-ipv6-box-head {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 1rem;
padding-bottom: 1.15rem;
border-bottom: 1px solid rgba(214, 239, 255, 0.16);
}

.why-ipv6-box-icon {
display: grid;
width: 54px;
height: 54px;
place-items: center;
border: 1px solid rgba(151, 244, 255, 0.56);
border-radius: 18px;
background: rgba(20, 207, 224, 0.12);
color: #aafaff;
font-size: 1.45rem;
font-weight: 900;
box-shadow: inset 0 0 0 5px rgba(38, 214, 232, 0.05), 0 10px 26px rgba(1, 18, 48, 0.22);
}

.why-ipv6-box-head span:not(.why-ipv6-box-icon) {
display: block;
margin-bottom: 0.2rem;
color: #9ff8ff;
font-size: 0.72rem;
font-weight: 850;
letter-spacing: 0.12em;
text-transform: uppercase;
}

.why-ipv6-box-head strong {
display: block;
font-size: clamp(1.1rem, 1.7vw, 1.35rem);
line-height: 1.25;
}

.why-ipv6-box ul {
display: grid;
gap: 1rem;
margin: 1.2rem 0 0;
padding: 0;
list-style: none;
}

.why-ipv6-box li {
position: relative;
display: grid;
gap: 0.22rem;
padding-left: 1.35rem;
}

.why-ipv6-box li::before {
position: absolute;
top: 0.48rem;
left: 0;
width: 7px;
height: 7px;
border-radius: 50%;
background: #44ead9;
box-shadow: 0 0 0 5px rgba(68, 234, 217, 0.09), 0 0 14px rgba(68, 234, 217, 0.52);
content: "";
}

.why-ipv6-box li strong {
font-size: 0.96rem;
}

.why-ipv6-box li span {
color: rgba(230, 242, 255, 0.76);
font-size: 0.88rem;
line-height: 1.55;
}

/* --- Messmethode ----------------------------------------------------------- */
.method-section {
padding-block: clamp(5rem, 9vw, 8rem);
border-block: 1px solid #e2eaf4;
background: #ffffff;
}

.content-intro {
max-width: 820px;
}

.content-intro-centered {
margin-inline: auto;
text-align: center;
}

.content-intro > p:last-child {
max-width: 720px;
margin: 1rem auto 0;
color: var(--ink-soft);
}

.method-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin-top: 2.4rem;
}

.method-grid article {
min-width: 0;
min-height: 260px;
padding: 1.6rem;
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: linear-gradient(150deg, #ffffff, #f8fbff);
box-shadow: 0 8px 25px rgba(26, 59, 105, 0.04);
}

.method-icon {
display: grid;
width: 42px;
height: 42px;
place-items: center;
border-radius: 12px;
color: #ffffff;
box-shadow: 0 8px 18px rgba(18, 94, 214, 0.2);
}

.method-icon svg,
.explain-icon svg {
display: block;
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-width: 1.9;
stroke-linecap: round;
stroke-linejoin: round;
}

.method-icon svg .icon-fill {
fill: currentColor;
}

.method-icon-blue {
background: var(--primary);
}

.method-icon-cyan {
background: #069db9;
}

.method-icon-violet {
background: var(--violet);
}

.method-grid h3 {
margin: 2rem 0 0;
color: var(--ink);
font-size: 1.1rem;
}

.method-grid p {
margin: 0.75rem 0 0;
color: var(--ink-soft);
font-size: 0.9rem;
}

/* --- Werte verstehen ------------------------------------------------------- */
.explain-section {
padding-block: clamp(4.8rem, 8vw, 7.3rem);
background: #eaf2fc;
}

.explain-layout {
display: grid;
grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
gap: clamp(2rem, 7vw, 7rem);
align-items: start;
}

.explain-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}

.explain-grid article {
min-width: 0;
padding: 1.45rem;
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.88);
}

.explain-icon {
display: grid;
width: 38px;
height: 38px;
margin-bottom: 0.9rem;
place-items: center;
border-radius: 11px;
}

.explain-icon-blue {
background: rgba(10, 99, 232, 0.12);
color: var(--primary);
}

.explain-icon-violet {
background: rgba(104, 85, 237, 0.12);
color: var(--violet);
}

.explain-grid h3 {
margin-bottom: 0.6rem;
color: var(--ink);
font-size: 1rem;
}

.explain-grid p {
margin-bottom: 0;
color: var(--ink-soft);
font-size: 0.88rem;
}

/* --- FAQ ------------------------------------------------------------------- */
.faq-section {
padding-block: clamp(5rem, 9vw, 8rem);
background: #ffffff;
}

.faq-layout {
display: grid;
grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
gap: clamp(2rem, 7vw, 7rem);
align-items: start;
}

.faq-list {
display: grid;
gap: 0.75rem;
}

.faq-list details {
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: #ffffff;
}

.faq-list summary {
position: relative;
padding: 1rem 3.2rem 1rem 1.1rem;
cursor: pointer;
color: var(--ink);
font-size: 0.9rem;
font-weight: 800;
list-style: none;
}

.faq-list summary::-webkit-details-marker {
display: none;
}

.faq-list summary::after {
position: absolute;
top: 50%;
right: 1.15rem;
color: var(--primary);
content: "+";
font-size: 1.25rem;
line-height: 1;
transform: translateY(-50%);
}

.faq-list details[open] summary::after {
content: "−";
}

.faq-list p {
margin: -0.15rem 0 0;
padding: 0 3.2rem 1.1rem 1.1rem;
color: var(--ink-soft);
font-size: 0.88rem;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
background: #061a3e;
color: #ffffff;
}

.footer-inner {
display: flex;
min-height: 120px;
align-items: center;
justify-content: space-between;
gap: 2rem;
}

.footer-inner p {
margin-bottom: 0;
color: rgba(255, 255, 255, 0.65);
font-size: 0.82rem;
text-align: right;
}

.footer-brand .brand-name {
font-size: 1rem;
}

.footer-brand .brand-mark {
width: 34px;
height: 34px;
}

.footer-brand.brand--image {
max-width: 238px;
}

.footer-brand.brand--image .brand-logo-image {
width: 198px;
}

/* --- Barrierefreiheit: sr-only, Fokus, hidden ------------------------------ */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

:focus-visible {
outline: 3px solid #7ef2ef;
outline-offset: 4px;
}

.results-section :focus-visible,
.why-ipv6-section :focus-visible,
.method-section :focus-visible,
.explain-section :focus-visible,
.faq-section :focus-visible {
outline-color: #1378eb;
}

[hidden] {
display: none !important;
}

@keyframes status-pulse {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.58;
transform: scale(0.78);
}
}

@supports not (color: color-mix(in srgb, red, blue)) {
.phase-step[data-state="active"] > span {
box-shadow: 0 0 0 5px rgba(10, 99, 232, 0.12);
}
}

.metric-card-throughput {
padding-inline: 1.5rem;
}

.metric-card-throughput strong {
font-size: clamp(1.75rem, 2.35vw, 2.6rem);
letter-spacing: -0.05em;
}

.metric-card-latency {
grid-template-columns: auto minmax(0, 1fr);
gap: 0.7rem;
padding-inline: 1.1rem;
}

.metric-card-latency strong {
font-size: clamp(1.55rem, 2vw, 2.15rem);
letter-spacing: -0.045em;
}

.faq-intro {
max-width: 29rem;
margin: 1rem 0 0;
color: var(--ink-soft);
}

.footer-nav {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.55rem 1.15rem;
font-size: 0.8rem;
font-weight: 700;
}

.footer-nav a {
color: rgba(255, 255, 255, 0.82);
text-decoration-thickness: 1px;
text-underline-offset: 0.22em;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
color: #ffffff;
}

/* --- Rechtsseiten (Impressum, Datenschutz) --------------------------------- */
.legal-body {
background: var(--page);
}

.legal-header {
background: radial-gradient(circle at 12% 10%, rgba(177, 225, 255, 0.22), transparent 20rem), linear-gradient(118deg, var(--hero-deep), var(--hero-mid));
color: #ffffff;
}

.legal-header-inner {
display: flex;
min-height: 92px;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
}

.legal-back-link {
display: inline-flex;
min-height: 42px;
align-items: center;
padding: 0.55rem 0.85rem;
border: 1px solid rgba(255, 255, 255, 0.42);
border-radius: 999px;
background: rgba(4, 48, 95, 0.2);
color: #ffffff;
font-size: 0.8rem;
font-weight: 750;
text-decoration: none;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
background: rgba(255, 255, 255, 0.14);
}

.legal-main {
padding: clamp(3.5rem, 7vw, 6.5rem) 24px;
}

.legal-article {
width: min(100%, 900px);
margin-inline: auto;
padding: clamp(1.5rem, 4vw, 3.25rem);
border: 1px solid var(--line);
border-radius: var(--radius-xl);
background: #ffffff;
box-shadow: var(--shadow-md);
}

.legal-article h1 {
max-width: none;
overflow-wrap: anywhere;
margin-bottom: clamp(2.5rem, 5vw, 4rem);
color: var(--ink);
font-size: clamp(2.6rem, 6vw, 4.8rem);
line-height: 0.98;
letter-spacing: -0.06em;
}

.legal-article h2 {
margin: 2.8rem 0 0.8rem;
color: var(--ink);
font-size: clamp(1.25rem, 2.5vw, 1.65rem);
line-height: 1.25;
letter-spacing: -0.025em;
}

.legal-article h2:first-of-type {
margin-top: 0;
}

.legal-article p,
.legal-article address {
margin-bottom: 1rem;
color: var(--ink-soft);
font-size: 0.98rem;
}

.legal-article address {
font-style: normal;
}

.legal-article a {
color: var(--primary-dark);
font-weight: 650;
text-decoration-thickness: 1px;
text-underline-offset: 0.18em;
}

.legal-article code {
padding: 0.12em 0.35em;
border: 1px solid var(--line);
border-radius: 0.35em;
background: var(--surface-soft);
color: var(--ink);
font-size: 0.9em;
overflow-wrap: anywhere;
}

/* --- Ergebnis teilen (Startseite und geteilte Ergebnisseite) --------------- */
.share-section {
padding: 0.8rem 0 0.2rem;
}

.section-heading-share {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.75fr);
align-items: flex-end;
gap: 0.9rem;
margin-bottom: 0.55rem;
}

.share-intro {
max-width: 31rem;
margin: 0;
color: var(--ink-soft);
line-height: 1.55;
}

.share-layout {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
gap: clamp(1.2rem, 3vw, 2rem);
align-items: start;
margin-top: 1.6rem;
}

.share-layout-page {
margin-top: 2rem;
}

.share-preview-frame,
.share-panel,
.share-page-shell {
position: relative;
border: 1px solid rgba(23, 63, 120, 0.12);
border-radius: 28px;
background: rgba(255, 255, 255, 0.82);
box-shadow: 0 24px 70px rgba(5, 22, 56, 0.12);
backdrop-filter: blur(12px);
}

.share-preview-frame {
overflow: hidden;
padding: clamp(0.65rem, 1.3vw, 0.85rem);
align-self: start;
}

.share-preview-frame img {
display: block;
width: 100%;
height: auto;
border-radius: 20px;
box-shadow: 0 14px 38px rgba(5, 22, 56, 0.18);
aspect-ratio: 1200 / 630;
object-fit: contain;
}

.share-panel {
padding: clamp(0.95rem, 1.8vw, 1.15rem);
}

.share-button-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.8rem;
}

.share-button-grid .button {
width: 100%;
justify-content: center;
text-align: center;
}

.share-fields {
display: grid;
gap: 0.8rem;
margin-top: 0.85rem;
}

.share-field {
display: grid;
gap: 0.45rem;
}

.share-field > span {
color: var(--ink-muted);
font-size: 0.9rem;
font-weight: 700;
}

.share-field input,
.share-field textarea {
width: 100%;
border: 1px solid rgba(23, 63, 120, 0.14);
border-radius: 16px;
background: rgba(245, 249, 255, 0.9);
color: var(--ink);
font: inherit;
padding: 0.85rem 0.95rem;
resize: vertical;
box-sizing: border-box;
}

.share-field textarea {
min-height: 4.3rem;
}

.share-page-shell {
padding: clamp(1.4rem, 2vw, 2rem);
}

.share-page-shell .content-intro h1 {
max-width: 16ch;
margin-bottom: 0.8rem;
color: var(--ink);
font-size: clamp(2.3rem, 5vw, 4.2rem);
line-height: 1;
letter-spacing: -0.05em;
overflow-wrap: anywhere;
}

.site-footer-legal {
margin-top: 0;
}

#messwerte,
#results-title,
#teilen {
scroll-margin-top: 1.2rem;
}

.section-heading-share h2 {
max-width: 16ch;
margin-bottom: 0;
font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.share-layout-tight {
gap: clamp(0.9rem, 2.2vw, 1.35rem);
margin-top: 0.6rem;
}

.share-status {
margin: 0 0 0.85rem;
padding: 0.8rem 0.95rem;
border-radius: 16px;
background: rgba(237, 245, 255, 0.95);
color: var(--ink-soft);
font-size: 0.95rem;
line-height: 1.45;
}

.share-status[data-state='ready'],
.share-status-ready {
background: rgba(231, 248, 241, 0.95);
color: #14553a;
}

.share-status[data-state='working'] {
background: rgba(236, 244, 255, 0.95);
color: #184a7a;
}

.share-status[data-state='warning'] {
background: rgba(255, 244, 225, 0.96);
color: #7a4a10;
}

.content-intro-compact {
margin-bottom: 1.2rem;
}

.results-section[data-has-result="true"] {
padding-top: clamp(2.8rem, 5vw, 4.6rem);
padding-bottom: clamp(1.2rem, 2.4vw, 2rem);
}

.results-section[data-has-result="true"] .section-heading {
margin-bottom: 1.25rem;
}

.results-section[data-has-result="true"] .metric-card {
min-height: 154px;
}

.share-section:not([hidden]) {
padding-top: 0.2rem;
}

.share-button-grid .button:disabled,
.share-button-grid .button[aria-disabled="true"] {
cursor: wait;
opacity: 0.58;
pointer-events: none;
}

/* --- Responsive: nach max-width absteigend --------------------------------- */
@media (max-width: 1180px) {
.metric-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 1120px) {
.site-nav {
justify-content: flex-end;
}

.hero {
grid-template-columns: minmax(0, 1fr);
column-gap: 0;
row-gap: 3rem;
min-height: 0;
padding-top: 4rem;
}

.hero-share {
grid-column: 1;
margin-top: 1.1rem;
}

.hero-copy {
max-width: 820px;
}

.speedtest-console {
max-width: 760px;
justify-self: stretch;
}

.gauge {
width: min(100%, 440px);
}
}

@media (max-width: 1024px) {
.share-layout {
grid-template-columns: minmax(0, 1fr);
}
}

@media (max-width: 900px) {
.footer-inner {
flex-wrap: wrap;
justify-content: center;
padding-block: 2rem;
}

.footer-inner > p {
flex-basis: 100%;
text-align: center;
}

.share-intro {
max-width: none;
}

.section-heading-share {
grid-template-columns: minmax(0, 1fr);
}

.results-section[data-has-result="true"] {
padding-top: 2.5rem;
padding-bottom: 1rem;
}
}

@media (max-width: 820px) {
.site-header {
grid-template-columns: auto auto;
}

.site-nav {
display: none;
}

.header-proof {
justify-self: end;
}

.connection-panel,
.why-ipv6-layout,
.explain-layout,
.faq-layout {
grid-template-columns: minmax(0, 1fr);
}

.why-ipv6-box {
max-width: 760px;
}

.method-grid {
grid-template-columns: minmax(0, 1fr);
}

.method-grid article {
min-height: 0;
}
}

@media (max-width: 640px) {
.page-width {
width: min(calc(100% - 28px), var(--page-width));
}

.site-header {
min-height: 76px;
gap: 0.8rem;
}

.brand--image {
max-width: 210px;
padding: 0.28rem 0.42rem;
border-radius: 11px;
}

.brand-logo-image {
width: clamp(150px, 42vw, 184px);
}

.brand-mark {
width: 36px;
height: 36px;
}

.brand-name {
font-size: 1.02rem;
}

.header-proof {
min-height: 34px;
padding: 0.42rem 0.65rem;
font-size: 0.67rem;
}

.hero {
row-gap: 2.35rem;
padding-block: 3.25rem 4.5rem;
}

.hero-share {
flex-direction: row;
margin-top: 1.7rem;
}

.hero-share-link {
width: 44px;
height: 44px;
}

h1 {
font-size: clamp(3.1rem, 16vw, 5rem);
}

.hero-claim {
font-size: clamp(1.25rem, 6vw, 1.65rem);
}

.hero-benefits {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-benefits li {
justify-content: center;
padding-inline: 0.45rem;
font-size: 0.72rem;
white-space: nowrap;
}

.speedtest-console {
padding: 1.25rem;
border-radius: 24px;
}

.console-head {
gap: 0.7rem;
}

.gauge {
margin-top: 0.9rem;
}

.live-value {
font-size: clamp(3.1rem, 18vw, 4.8rem);
}

.phase-track {
gap: 0.35rem;
}

.phase-step strong {
font-size: 0.65rem;
}

.console-foot {
align-items: flex-start;
flex-direction: column;
gap: 0.2rem;
}

.section-heading {
align-items: flex-start;
flex-direction: column;
gap: 1rem;
}

.metric-grid,
.connection-details,
.explain-grid {
grid-template-columns: minmax(0, 1fr);
}

.metric-card {
min-height: 145px;
}

.connection-details > div,
.connection-details > div:nth-child(2n),
.connection-details > div:nth-last-child(-n + 2) {
border-right: 0;
border-bottom: 1px solid rgba(211, 230, 255, 0.1);
}

.connection-details > div:last-child {
border-bottom: 0;
}

.footer-inner {
min-height: 180px;
align-items: flex-start;
flex-direction: column;
justify-content: center;
}

.metric-grid {
grid-template-columns: minmax(0, 1fr);
}

.metric-card-throughput,
.metric-card-latency {
padding-inline: 1.35rem;
}

.metric-card-throughput strong,
.metric-card-latency strong {
font-size: clamp(1.8rem, 9vw, 2.5rem);
}

.footer-nav {
justify-content: flex-start;
}

.legal-header-inner {
min-height: 78px;
}

.legal-back-link {
padding-inline: 0.68rem;
font-size: 0.72rem;
}

.legal-main {
padding: 2.25rem 14px 3.5rem;
}

.legal-article {
padding: 1.35rem;
border-radius: 22px;
}

.why-ipv6-section {
padding-block: 4rem;
}

.why-ipv6-box {
border-radius: var(--radius-lg);
}

.why-ipv6-box-head {
align-items: start;
}

.share-button-grid {
grid-template-columns: minmax(0, 1fr);
}

.share-preview-frame,
.share-panel,
.share-page-shell {
border-radius: 24px;
}

/* Rendertreue: Diese beiden Elemente tragen zusaetzlich .section-heading bzw.
.legal-article. Die mobilen Werte dieser Basisklassen wurden in frueheren
Versionen von spaeter stehenden Share-Regeln ueberschrieben; das bleibt so. */
.section-heading-share {
align-items: flex-end;
gap: 0.9rem;
}

.share-page-shell {
padding: 1.4rem;
}
}

@media (max-width: 420px) {
.legal-header-inner {
gap: 0.55rem;
}

.legal-header .brand {
min-width: 0;
gap: 0.45rem;
}

.legal-header .brand-name {
font-size: 0.78rem;
}

.legal-header .brand-mark {
width: 28px;
height: 28px;
}

.legal-header .brand--image {
max-width: 182px;
padding: 0.24rem 0.36rem;
}

.legal-header .brand--image .brand-logo-image {
width: 148px;
}

.legal-back-link {
max-width: 8.2rem;
text-align: center;
}

.metric-card-throughput strong {
font-size: clamp(1.45rem, 8vw, 2.05rem);
}
}

@media (max-width: 380px) {
.page-width {
width: min(calc(100% - 20px), var(--page-width));
}

.brand-name {
font-size: 0.93rem;
}

.header-proof {
padding-inline: 0.52rem;
}

.header-proof > span {
display: none;
}

.hero-benefits {
grid-template-columns: minmax(0, 1fr);
}

.hero-benefits li {
justify-content: flex-start;
}

.protocol-badge {
padding-inline: 0.55rem;
}

.phase-step strong {
font-size: 0.61rem;
}
}

/* --- Bedienhilfen ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.001ms !important;
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
}
}

@media (forced-colors: active) {
.hero-surface,
.site-footer,
.connection-panel {
forced-color-adjust: auto;
}

.speedtest-console,
.metric-card,
.method-grid article,
.faq-list details,
.method-icon,
.explain-icon {
border: 1px solid CanvasText;
}

.gauge-value,
.gauge-track {
stroke: CanvasText;
filter: none;
}

.button-primary {
border: 1px solid ButtonText;
background: ButtonFace;
color: ButtonText;
box-shadow: none;
}
}
