/* ==========================================================================
   abisko media – Stylesheet (ohne Framework)
   ========================================================================== */

/* ---------- Schriften (Lato, selbst gehostet, SIL OFL) ---------- */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-bold.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/lato-black.woff2") format("woff2");
}

/* ---------- Gestaltungs-Variablen ---------- */
:root {
    --c-accent: #007a6c;          /* 5,25:1 auf Weiß */
    --c-accent-dark: #005c51;
    --c-accent-soft: #e3f1ef;
    --c-blue: #2f63b5;            /* Logo-Blau, 5,6:1 auf Weiß */
    --c-text: #1f2328;
    --c-muted: #565c63;           /* 6,6:1 auf Weiß */
    --c-bg: #f6f6f4;
    --c-surface: #ffffff;
    --c-line: #dcdcd8;
    --c-dark: #17191b;
    --c-dark-2: #222528;
    --c-on-dark: #f2f2f0;
    --c-on-dark-muted: #c4c7ca;   /* 9:1 auf --c-dark */
    --c-focus: #007a6c;
    --c-error: #b3261e;

    --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .06);
    --header-h: 68px;
    --wrap: 1140px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 112px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

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

img {
    height: auto;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--c-accent);
    text-underline-offset: .18em;
}

a:hover {
    color: var(--c-accent-dark);
}

:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
    outline-color: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -200px;
    z-index: 1000;
    padding: 10px 16px;
    background: #fff;
    color: var(--c-text);
    font-weight: 700;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 12px;
}

main:focus {
    outline: none;
}

/* ---------- Kopfbereich ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(23, 25, 27, .92);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
    color: var(--c-on-dark);
}

.site-header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 46px;
    height: auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--c-on-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .875rem;
    border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.site-nav .lang-switch a {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, .35);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .js .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--c-dark);
        border-top: 1px solid rgba(255, 255, 255, .1);
        display: none;
    }

    .js .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px var(--gutter) 16px;
    }

    .site-nav a {
        padding: 14px 8px;
        font-size: 1rem;
    }

    .site-nav .lang-switch a {
        margin: 8px 0 0;
        justify-content: center;
    }

    /* ohne JavaScript: Navigation einfach unter dem Header anzeigen */
    html:not(.js) .site-header {
        position: static;
        height: auto;
        padding-block: 10px;
    }

    html:not(.js) .site-header .wrap {
        flex-wrap: wrap;
    }

    html:not(.js) .nav-toggle {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(100svh, 820px);
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 48px) var(--gutter) 64px;
    color: #fff;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

/* Wechselnde Hintergrundmotive (Wismar / Greifswald) */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide picture,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero p.hero-place {
    position: absolute;
    left: var(--gutter);
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.hero-pause {
    position: absolute;
    right: var(--gutter);
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(10, 12, 14, .45);
    color: #fff;
    cursor: pointer;
}

.hero-pause:hover {
    background: rgba(10, 12, 14, .75);
}

.hero-pause .icon-play,
.hero-pause[data-paused="true"] .icon-pause {
    display: none;
}

.hero-pause[data-paused="true"] .icon-play {
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 12, 14, .6) 0%, rgba(10, 12, 14, .55) 45%, rgba(10, 12, 14, .75) 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: .4em;
    text-wrap: balance;
}

.hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 2em;
    color: #eef0f1;
}

.hero .mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    stroke-width: 1.5;
}

/* ---------- Schaltflächen ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid var(--c-accent);
    background: var(--c-accent);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.btn:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--c-text);
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
}

/* ---------- Abschnitte ---------- */
.section {
    padding-block: var(--section);
}

.section-alt {
    background: var(--c-surface);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(36px, 5vw, 56px);
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .5em;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--c-accent);
    border-radius: 2px;
}

.section-head p {
    color: var(--c-muted);
    margin: 0;
}

.subhead {
    margin-top: clamp(56px, 8vw, 88px);
}

/* ---------- Leistungen ---------- */
.services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 20px;
}

.service {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-alt .service {
    background: var(--c-bg);
    box-shadow: none;
}

.service .icon-box {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: var(--radius);
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.service .icon-box .icon {
    width: 26px;
    height: 26px;
}

.service h3 {
    font-size: 1.1rem;
    margin: 4px 0 6px;
}

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

/* ---------- Kernkompetenzen ---------- */
.competences {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    counter-reset: comp;
}

.competences li {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--c-surface);
    border-radius: var(--radius);
    border-top: 4px solid var(--c-accent);
    box-shadow: var(--shadow);
}

.competences li:nth-child(2) {
    border-top-color: var(--c-blue);
}

.competences li:nth-child(3) {
    border-top-color: #b8442f;
}

.competences h3 {
    font-size: 1.35rem;
    margin-bottom: .3em;
}

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

/* ---------- Zitat ---------- */
.quote {
    background: var(--c-dark-2);
    color: var(--c-on-dark);
    padding-block: clamp(56px, 8vw, 96px);
}

.quote figure {
    margin: 0 auto;
    max-width: 780px;
    text-align: center;
}

.quote blockquote {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.45;
}

.quote blockquote p {
    margin: 0;
}

.quote blockquote p::before {
    content: "„";
}

.quote blockquote p::after {
    content: "“";
}

.quote:lang(en) blockquote p::before {
    content: "“";
}

.quote:lang(en) blockquote p::after {
    content: "”";
}

.quote figcaption {
    margin-top: 16px;
    color: var(--c-on-dark-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .9rem;
}

.quote figcaption::before {
    content: "— ";
}

/* ---------- Über uns / Team ---------- */
.prose {
    max-width: 760px;
    margin-inline: auto;
}

.team {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
    justify-content: center;
    gap: 28px;
}

.member {
    background: var(--c-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.member .body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.member h3 {
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.member .role {
    color: var(--c-accent);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: 10px;
}

.member p {
    color: var(--c-muted);
    margin-bottom: 16px;
}

.member .contact-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
}

.member .contact-link:hover {
    text-decoration: underline;
}

/* ---------- Portfolio ---------- */
.portfolio {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 28px;
}

.project {
    background: var(--c-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project .shot {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #e9e9e6;
    cursor: zoom-in;
}

.project .shot img {
    width: 100%;
    aspect-ratio: 800 / 582;
    object-fit: cover;
    transition: transform .3s ease;
}

.project .shot:hover img {
    transform: scale(1.02);
}

.project .shot .zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(23, 25, 27, .8);
    color: #fff;
}

.project .body {
    padding: 22px 24px 26px;
}

.project h3 {
    font-size: 1.15rem;
    margin-bottom: .4em;
}

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

.lightbox {
    width: min(1100px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox::backdrop {
    background: rgba(10, 12, 14, .82);
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: calc(92vh - 110px);
    object-fit: contain;
    background: #e9e9e6;
}

.lightbox .caption {
    margin: 0;
    padding: 14px 64px 18px 20px;
    color: var(--c-muted);
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 25, 27, .85);
    color: #fff;
    cursor: pointer;
}

.lightbox .close .icon {
    width: 22px;
    height: 22px;
}

/* ---------- Karte ---------- */
.map {
    position: relative;
    display: block;
    height: clamp(260px, 32vw, 420px);
    overflow: hidden;
    background: #e8e4dc;
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 41% 57%;
}

.map .attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 3px 10px;
    font-size: .8rem;
    background: rgba(255, 255, 255, .9);
    color: var(--c-text);
}

.map .open-map {
    position: absolute;
    left: var(--gutter);
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    color: var(--c-text);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map .open-map:hover {
    color: var(--c-accent);
}

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-grid h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-style: normal;
}

.contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-list .icon {
    margin-top: .2em;
    color: var(--c-accent);
}

.form-hint {
    font-size: .95rem;
    color: var(--c-muted);
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form .full {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .form {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.field .opt {
    font-weight: 400;
    color: var(--c-muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--c-text);
    background: #fff;
    border: 1px solid #767676;
    border-radius: var(--radius);
}

.field textarea {
    min-height: 170px;
    resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline-offset: 1px;
    border-color: var(--c-accent);
}

.form-status:empty {
    display: none;
}

.form-status {
    margin-bottom: 20px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    border-left: 4px solid;
}

.alert-error {
    background: #fbeceb;
    border-color: var(--c-error);
    color: #7a1a14;
}

.alert-success {
    background: var(--c-accent-soft);
    border-color: var(--c-accent);
    color: #0f3d36;
}

.alert h3 {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: .3em;
}

.alert p {
    margin: 0;
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head {
    background: var(--c-dark);
    color: #fff;
    padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(40px, 6vw, 64px);
}

.page-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.legal {
    max-width: 820px;
    margin-bottom: var(--section) !important;
    background: var(--c-surface);
    margin: clamp(-32px, -3vw, -16px) auto 0;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.legal h2 {
    font-size: 1.25rem;
    margin-top: 1.8em;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal ul {
    padding-left: 1.2em;
}

.legal .note {
    padding: 14px 18px;
    background: var(--c-accent-soft);
    border-radius: var(--radius);
}

/* ---------- Fußbereich ---------- */
.site-footer {
    margin-top: 0;
    background: var(--c-dark-2);
    color: var(--c-on-dark-muted);
}

.site-footer a {
    color: var(--c-on-dark);
}

.site-footer a:hover {
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 32px;
    padding-block: 56px 40px;
}

.footer-main h2 {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.footer-main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-main li {
    margin-bottom: 6px;
}

.footer-main address {
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: var(--c-dark);
}

.footer-bottom .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.to-top {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
}

/* ---------- Dezente Einblend-Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Druck ---------- */
@media print {
    .site-header,
    .skip-link,
    .map,
    .to-top,
    .form,
    .nav-toggle {
        display: none !important;
    }

    .hero,
    .page-head {
        min-height: 0;
        padding: 0;
        color: #000;
        background: none;
    }

    .hero::after,
    .hero-slides,
    .hero-place,
    .hero-pause {
        display: none;
    }

    body {
        background: #fff;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
