/**
 * Einstiegspunkt fuer das CSS-Bundle.
 * Wird von webpack nach public/css/presencecanaria.css gebaut (npm run build).
 */

/* Hausfarbe ist #CC071E. Sie ist Sekundaerfarbe, keine Grundflaeche:
   dominanter Hintergrund bleibt Weiss. Siehe templates/CLAUDE.md. */
:root {
    --color-text: #1c2b33;
    --color-muted: #5c6b74;
    --color-brand: #CC071E;
    --color-brand-dark: #A70619;
    --color-brand-tint: #FDF2F3;
    --color-bg: #ffffff;
    --color-surface: var(--color-brand-tint);
    --color-border: #e8dcde;
    --measure: 68ch;
    --space: 1.5rem;
    --radius: 10px;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-brand);
}

.container {
    width: min(100% - 2 * var(--space), 72rem);
    margin-inline: auto;
}

/* --- Kopf- und Fussbereich ------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space);
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    color: inherit;
}

.site-header__logo {
    width: auto;
    height: 40px;
}

.site-nav__list,
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    color: inherit;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-brand);
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.9375rem;
}

.site-footer p {
    margin: 0;
}

.site-footer__copy {
    color: var(--color-muted);
}

/* --- Schaltflaechen --------------------------------------------------- */

.button {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.button--primary {
    background: var(--color-brand);
    color: #fff;
}

.button--primary:hover,
.button--primary:focus {
    background: var(--color-brand-dark);
}

.button--ghost {
    border-color: currentColor;
    color: inherit;
}

/* --- Hero -------------------------------------------------------------- */

/* Heller Grund statt abgedunkeltem Foto: Die Hausfarbe traegt als
   Schriftfarbe nur gegen Weiss (5,81:1). Auf einem Foto braeche der Kontrast
   ein und die Ueberschrift waere unlesbar - siehe templates/CLAUDE.md. Das
   Bild steht deshalb daneben statt dahinter. */
.hero {
    background: var(--color-bg);
}

.hero__inner {
    display: grid;
    gap: clamp(1.5rem, 5vw, 3rem);
    align-items: center;
    padding-block: clamp(3rem, 9vw, 5.5rem);
}

@media (min-width: 48rem) {
    .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero__image {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: var(--color-brand);
}

.hero__lead {
    margin: 0 0 2rem;
    max-width: var(--measure);
    font-size: 1.0625rem;
    color: var(--color-text);
}

/* Die Seite fuehrt Deutsch, Spanisch und Englisch untereinander.
   Jede Fassung bekommt eine eigene Zeile; die nicht-deutschen treten
   optisch zurueck, ohne unlesbar zu werden. */
.hero__title span,
.hero__lead span,
.feature p span,
.contact__intro p span {
    display: block;
}

/* Die nicht-deutschen Fassungen treten zurueck ueber eine eigene
   Textfarbe, nicht ueber Transparenz: Durchscheinendes Rot auf Weiss faellt
   unter die Kontrastgrenze, der gedaempfte Ton haelt 5,51:1. */
.hero__title span:not([lang="de"]) {
    font-size: 0.62em;
    font-weight: 400;
    color: var(--color-muted);
}

.hero__lead span:not([lang="de"]),
.feature p span:not([lang="de"]),
.contact__intro p span:not([lang="de"]) {
    font-size: 0.9375em;
    color: var(--color-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

/* --- Abschnitte -------------------------------------------------------- */

.section {
    padding-block: clamp(3rem, 8vw, 5rem);
}

.section--muted {
    background: var(--color-surface);
}

.section__title {
    margin: 0 0 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.feature:last-child {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .feature {
        grid-template-columns: 1fr 1fr;
    }

    .feature--reverse .feature__text {
        order: 2;
    }
}

.feature__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.feature p {
    margin: 0;
    color: var(--color-muted);
}

.feature__image {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* --- Preise ------------------------------------------------------------ */

.plans {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.plan {
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    text-align: center;
}

.plan--featured {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
}

.plan__price {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-brand);
}

.plan__name {
    margin: 0.25rem 0 0;
    font-size: 1.125rem;
}

.plan__interval {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

/* --- Kontakt ----------------------------------------------------------- */

.contact {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 48rem) {
    .contact {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__intro p {
    color: var(--color-muted);
}

.contact__data {
    display: grid;
    grid-template-columns: auto;
    gap: 0.25rem 1rem;
    margin: 0;
}

.contact__data dt {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.contact__data dd {
    margin: 0 0 1rem;
}

/* --- Textseiten (Impressum, Datenschutz, Fehlerseiten) ----------------- */

.prose {
    max-width: var(--measure);
    padding-block: 3rem;
}

/* --- Karte -------------------------------------------------------------- */

.map {
    margin-top: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.map__frame {
    display: block;
    width: 100%;
    height: clamp(18rem, 45vw, 26rem);
    border: 0;
}

