/* TAXCO AG – statische Wartungs- & Rechtsseiten */

@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Exo'; src: url('fonts/Exo-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    --yellow: #ffd000;
    --white: #ffffff;
    --paper: #f7f7f5;
    --line: #e9e8e4;
    --ink: #141414;
    --ink-soft: #3a3a3a;
    --ink-muted: #75746f;
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Exo', system-ui, sans-serif;
    --w: min(1120px, 100% - 48px);
    --w-text: min(760px, 100% - 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--yellow); }

/* ---------- Wartungsseite ---------- */
.mt { display: flex; flex-direction: column; }

.notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--ink-muted);
    text-align: center;
}

.status-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.mt-top {
    width: var(--w);
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mt-logo { width: 180px; }

.top-phone {
    display: grid;
    text-align: right;
    font-family: var(--font-head);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.25;
}

.top-phone span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.top-phone:hover { color: var(--ink-soft); }

.mt-main {
    flex: 1;
    width: var(--w);
    margin: 0 auto;
    padding: 56px 0 96px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mt-hero h1 {
    margin: 24px 0 28px;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.points {
    margin: 36px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    display: grid;
    gap: 12px;
}

.points li {
    position: relative;
    padding-left: 32px;
    font-size: 0.98rem;
    color: var(--ink);
}

.points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.mt-hero h1 em {
    font-style: normal;
    background: linear-gradient(transparent 66%, rgba(255, 208, 0, 0.6) 66%, rgba(255, 208, 0, 0.6) 90%, transparent 90%);
}

.lead {
    margin: 0;
    max-width: 46ch;
    font-size: 1.08rem;
    font-weight: 300;
    color: var(--ink-soft);
}

.actions { display: grid; gap: 16px; }

.action {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.action:hover {
    border-color: #d6d4cf;
    box-shadow: 0 12px 32px -12px rgba(20, 20, 20, 0.18);
    transform: translateY(-2px);
}

.action-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.action-icon svg { width: 22px; height: 22px; }

.action-text { display: grid; min-width: 0; }

.action-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.action-value {
    font-family: var(--font-head);
    font-size: 1.6rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.action-arrow { font-size: 1.2rem; color: var(--ink-muted); transition: transform 0.2s, color 0.2s; }
.action:hover .action-arrow { color: var(--ink); transform: translateX(4px); }

.action--primary { border-color: var(--ink); background: var(--ink); color: var(--white); }
.action--primary:hover { border-color: var(--ink); background: #222; }
.action--primary .action-icon { background: var(--yellow); color: var(--ink); }
.action--primary .action-label, .action--primary .action-arrow { color: rgba(255, 255, 255, 0.6); }
.action--primary:hover .action-arrow { color: var(--yellow); }

.facts { background: var(--paper); border-top: 1px solid var(--line); }

.facts-inner {
    width: var(--w);
    margin: 0 auto;
    padding: 72px 0 80px;
}

.facts-head { margin-bottom: 36px; }

.facts-head h2 {
    margin: 14px 0 0;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    overflow: hidden;
}

.fact {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-left: 1px solid var(--line);
}

.fact:first-child { border-left: 0; }

.fact-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(255, 208, 0, 0.18);
    color: var(--ink);
}

.fact-icon svg { width: 18px; height: 18px; }

.fact .k {
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.fact .v { font-size: 0.98rem; line-height: 1.65; }
.fact .v a { text-decoration: none; }
.fact .v a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.mt .site-footer { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer .inner {
    width: var(--w);
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.site-footer a {
    text-decoration: none;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.site-footer a:hover, .site-footer a[aria-current='page'] { color: var(--ink); }

/* ---------- Rechtsseiten ---------- */
.legal-head { border-bottom: 1px solid var(--line); }

.legal-head .bar {
    width: var(--w);
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-head .bar img { width: 150px; }

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; }

.legal-title {
    width: var(--w-text);
    margin: 0 auto;
    padding: 64px 0 56px;
}

.legal-title .eyebrow { margin-bottom: 20px; }

.legal-title h1 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.legal-title p { margin: 16px 0 0; max-width: 52ch; color: var(--ink-muted); font-weight: 300; }

.legal-body {
    width: var(--w-text);
    margin: 0 auto;
    padding: 8px 0 96px;
}

.toc {
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: 4px;
    background: var(--paper);
}

.toc strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.toc ol { margin: 0; padding-left: 20px; color: var(--ink-muted); }
.toc li { padding: 2px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.section {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.section:last-child { border-bottom: 0; }

.section h2 {
    margin: 0 0 24px;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.section h3 { margin: 32px 0 8px; font-weight: 600; font-size: 1rem; }
.section h4 { margin: 20px 0 4px; font-weight: 500; font-size: 0.98rem; }

.section p, .section li { color: var(--ink-soft); font-size: 0.98rem; }
.section p { margin: 0 0 14px; }
.section p:last-child { margin-bottom: 0; }
.section ul { margin: 0 0 14px; padding-left: 20px; }
.section li { margin-bottom: 8px; }

.section a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    transition: background 0.2s;
}

.section a:hover { background: rgba(255, 208, 0, 0.18); }

.caps p { font-size: 0.85rem; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 40px;
}

.info .k {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.info .v { display: block; color: var(--ink); }
.info p { font-size: 0.9rem; }

.note {
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 2px solid var(--yellow);
    background: var(--paper);
    color: var(--ink-muted) !important;
    font-size: 0.88rem !important;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--white) !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: background 0.2s;
}

.cta:hover { background: #2c2c2c !important; }
.cta svg { width: 16px; height: 16px; color: var(--yellow); }

.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; }

.steps li {
    counter-increment: s;
    display: grid;
    grid-template-columns: 48px 1fr;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--font-head);
    color: var(--ink-muted);
}

/* ---------- Responsive ---------- */

/* Kleine Laptops */
@media (max-width: 1100px) {
    .mt-main { gap: 56px; }
    .action { padding: 22px 24px; gap: 16px; }
    .action-value { font-size: 1.4rem; }
    .fact { padding: 28px 22px; }
}

/* Tablets */
@media (max-width: 900px) {
    :root { --w: calc(100% - 48px); }
    .mt-main { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 72px; }
    .mt-hero { max-width: 640px; }
    .actions { grid-template-columns: 1fr 1fr; }
    .action { grid-template-columns: auto 1fr; }
    .action-arrow { display: none; }
    .facts-inner { padding: 64px 0 72px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(odd) { border-left: 0; }
    .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Smartphones */
@media (max-width: 640px) {
    :root { --w: calc(100% - 32px); --w-text: calc(100% - 32px); }
    .notice { padding: 9px 16px; font-size: 0.78rem; text-align: left; }
    .mt-top { padding: 18px 0; gap: 16px; }
    .mt-logo { width: 128px; }
    .top-phone { font-size: 1.05rem; }
    .top-phone span { font-size: 0.62rem; letter-spacing: 0.14em; }
    .mt-main { gap: 36px; padding: 28px 0 56px; }
    .eyebrow { font-size: 0.7rem; letter-spacing: 0.2em; }
    .mt-hero h1 { margin: 18px 0 20px; font-size: min(2.3rem, calc((100vw - 32px) / 8.6)); }
    .lead { font-size: 1rem; }
    .points { margin-top: 28px; padding-top: 22px; gap: 10px; }
    .points li { font-size: 0.95rem; }
    .actions { grid-template-columns: 1fr; gap: 12px; }
    .action { padding: 18px 20px; gap: 16px; }
    .action-icon { width: 44px; height: 44px; }
    .action-icon svg { width: 20px; height: 20px; }
    .action-value { font-size: 1.3rem; }
    .facts-inner { padding: 48px 0 56px; }
    .facts-head { margin-bottom: 24px; }
    .facts-grid { grid-template-columns: 1fr; }
    .fact { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 20px; border-left: 0; }
    .fact + .fact { border-top: 1px solid var(--line); }
    .fact-icon { margin-bottom: 0; }
    .fact .k { margin-bottom: 0; }
    .fact .v { flex-basis: 100%; padding-left: 56px; }
    .site-footer .inner { flex-direction: column; align-items: flex-start; padding: 24px 0 32px; }
    .site-footer nav { gap: 8px 20px; }
    .legal-head .bar { padding: 18px 0; }
    .legal-head .bar img { width: 120px; }
    .legal-title { padding: 40px 0 32px; }
    .legal-title h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .toc { margin-top: 28px; padding: 20px; }
    .section { padding: 36px 0; }
    .section h2 { font-size: 1.35rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .cta { width: 100%; justify-content: center; }
}

/* Sehr schmale Geräte */
@media (max-width: 380px) {
    .top-phone span { display: none; }
    .mt-logo { width: 112px; }
    .action { padding: 16px; gap: 12px; }
    .action-icon { width: 40px; height: 40px; }
    .action-value { font-size: 1.15rem; }
    .fact .v { padding-left: 0; margin-top: 10px; }
}

/* Smartphone quer */
@media (max-height: 520px) and (orientation: landscape) {
    .mt-main { padding: 24px 0 40px; }
    .mt-hero h1 br { display: none; }
    .actions { grid-template-columns: 1fr 1fr; }
}

/* Desktop: Startseite passt ohne Scrollen in den Bildschirm */
@media (min-width: 901px) and (min-height: 600px) {
    body.mt { height: 100vh; height: 100dvh; overflow: hidden; }
    .mt-top { padding: clamp(12px, 3vh, 32px) 0; }
    .mt-main { min-height: 0; padding: clamp(12px, 3.5vh, 56px) 0; }
    .mt-hero h1 { margin: clamp(10px, 2vh, 24px) 0 clamp(12px, 2.4vh, 28px); font-size: clamp(2rem, min(4.4vw, 5.8vh), 3.6rem); }
    .points { margin-top: clamp(16px, 3vh, 36px); padding-top: clamp(14px, 2.4vh, 28px); }
    .facts-inner { padding: clamp(14px, 3vh, 36px) 0; }
    .facts-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .fact { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; padding: clamp(14px, 2.6vh, 26px) 22px; }
    .fact-icon { grid-row: span 2; margin-bottom: 0; }
    .fact .k { margin-bottom: 2px; }
    .fact .v { font-size: 0.92rem; line-height: 1.55; }
    .site-footer .inner { padding: clamp(12px, 2vh, 28px) 0; }
}

/* Desktop mit wenig Höhe: Kernaussagen ausblenden */
@media (min-width: 901px) and (min-height: 600px) and (max-height: 900px) {
    .points { display: none; }
}

/* Desktop sehr flach (z. B. Laptop mit Lesezeichenleiste) */
@media (min-width: 901px) and (min-height: 600px) and (max-height: 700px) {
    .lead { font-size: 0.98rem; line-height: 1.6; }
    .action { padding: 16px 22px; }
    .action-icon { width: 44px; height: 44px; }
    .fact .v { line-height: 1.45; }
}

/* Touch: kein Hover-Versatz */
@media (hover: none) {
    .action:hover { transform: none; box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
