/* ============================================================
   CARECOM® Blazor reimplementation — global stylesheet.
   Custom CSS, no external framework. Visually echoes the
   original carecom.de while keeping a single, clean stylesheet.
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-muted: #f4f6f8;
    --bg-quote: #1d242b;
    --fg: #1d242b;
    --fg-soft: #4a5560;
    --fg-muted: #7a8590;
    --accent: #1f6f8b;
    --accent-dark: #134453;
    --accent-soft: #e3eef3;
    --border: #e2e6ea;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
    --radius: 4px;
    --radius-lg: 8px;
    --content-w: 1100px;
    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ----- External link marker (mirrors carecom.de's .externalLink::after) -----
   Any anchor that opens in a new tab gets a small "external" glyph after it.
   The marker is suppressed for:
   - anchors that wrap an image (logos, icons),
   - anchors that explicitly opt out via class="no-extlink". */
a[target="_blank"]:not(.no-extlink):not(:has(img))::after {
    content: " \2197"; /* U+2197 NORTH EAST ARROW */
    font-size: .85em;
    color: var(--fg-muted);
    margin-left: .15em;
    display: inline-block;
    transform: translateY(-.05em);
    text-decoration: none;
}
a[target="_blank"]:not(.no-extlink):not(:has(img)):hover::after {
    color: var(--accent);
}
/* Dark surfaces (footer, cookie banner) need a lighter glyph */
.site-footer a[target="_blank"]:not(.no-extlink):not(:has(img))::after,
.cookie-consent a[target="_blank"]:not(.no-extlink):not(:has(img))::after {
    color: rgba(255, 255, 255, .55);
}
.site-footer a[target="_blank"]:not(.no-extlink):not(:has(img)):hover::after {
    color: #fff;
}

h1, h2, h3, h4 { color: var(--fg); line-height: 1.25; }
h1 { font-size: 2.4rem; margin: 0 0 1rem; font-weight: 300; }
h2 { font-size: 1.6rem; margin: 1.4rem 0 .8rem; font-weight: 400; }
h3 { font-size: 1.2rem; margin: 1rem 0 .6rem; font-weight: 600; }
h4 { font-size: .95rem; margin: 0 0 .4rem; font-weight: 600; color: var(--fg-soft); letter-spacing: .02em; }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.95em; }

.container {
    width: 100%;
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--carousel { padding-top: 1.5rem; }

.muted { color: var(--fg-muted); }
.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; }

/* ============================================================
   Page layout
   ============================================================ */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page__main { flex: 1; }

.main-layout { padding-top: 1.5rem; padding-bottom: 3rem; }

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
    margin-bottom: 1.5rem;
}
.page-header-row__title h1 { margin: 0 0 .25rem; }
.page-header-row__lang { font-size: .9rem; }
.blog-post__meta { color: var(--fg-muted); font-size: .9rem; margin: .25rem 0 0; }
.blog-post__meta time { white-space: nowrap; }

/* Main + aside grid (~ Bootstrap col-md-9 / col-md-3 of the original) */
.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 280px;
    gap: 2.5rem;
}
.layout-grid__main { min-width: 0; }

/* ============================================================
   SiteHeader
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: .8rem;
    padding-bottom: .8rem;
}
.site-header__brand { display: flex; align-items: center; }
.site-header__brand:hover { text-decoration: none; }
.site-header__logo { height: 38px; width: auto; }

.site-header__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.site-header__link {
    color: var(--fg-soft);
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .4rem .1rem;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}
.site-header__link:hover { color: var(--accent); text-decoration: none; }
.site-header__link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   Language switcher: small flag glyph + alternate-language link
   ============================================================ */
.lang-switcher { display: inline-flex; align-items: center; gap: .35rem; color: var(--fg-muted); font-size: .9rem; }
.lang-switcher__flag { color: var(--accent); }
.lang-switcher__link { color: var(--accent); }

/* ============================================================
   Home: text carousel
   ============================================================ */
.text-carousel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
    background: #fff;
}
.text-carousel__slide {
    position: absolute; inset: 0;
    padding: 1.5rem 4rem;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* All three slides are stacked on top of each other; only the active one
       should receive clicks. Without this, the topmost (last) slide swallows
       every click — its "mehr" link wins regardless of which is visible. */
    pointer-events: none;
}
.text-carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.text-carousel__caption { text-align: center; max-width: 600px; }
.text-carousel__brand { font-size: 1.1rem; font-weight: 300; color: var(--fg-soft); margin: 0 0 .4rem; text-transform: none; letter-spacing: 0; }
.text-carousel__brand sup { font-size: .6em; }
.text-carousel__slogan { font-size: 1.5rem; font-weight: 300; margin: 0 0 1rem; color: var(--fg); }
.text-carousel__btn {
    display: inline-block;
    padding: .45rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    text-decoration: none;
    transition: all .15s;
}
.text-carousel__btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.text-carousel__control {
    position: absolute; top: 0; bottom: 0;
    width: 3rem;
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,.4);
    font-size: 2rem;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.text-carousel__control:hover { color: var(--accent); background: rgba(0,0,0,.04); text-decoration: none; }
.text-carousel__control--prev { left: 0; }
.text-carousel__control--next { right: 0; }
.text-carousel__indicators {
    position: absolute;
    bottom: .8rem; left: 50%;
    transform: translateX(-50%);
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: .35rem;
}
.text-carousel__indicators li button {
    width: 10px; height: 10px;
    padding: 0;
    border: 1px solid var(--fg-muted);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.text-carousel__indicators li.is-active button { background: var(--fg-muted); }

/* ============================================================
   Home: 3 icon columns + jumbotron
   ============================================================ */
.jumbotron {
    background: var(--bg-muted);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.jumbotron p { margin: 0; font-size: 1.05rem; color: var(--fg-soft); }
.jumbotron p + p { margin-top: .8rem; }

.home-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.home-columns__col { text-align: center; }
.home-columns__col h2 { font-size: 1.1rem; line-height: 1.3; min-height: 4rem; }
.home-columns__col h2 a { color: var(--fg); }
.home-columns__col h2 a:hover { color: var(--accent); text-decoration: none; }
.home-columns__icon {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: .6rem;
}
.home-columns__icon svg {
    width: 30px;
    height: 30px;
    display: block;
}
.home-columns__col p { font-size: .95rem; color: var(--fg-soft); }

.home-closing { padding-top: 2.5rem; font-size: 1.05rem; }
.signature { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.4rem; color: var(--fg); margin: 1rem 0; }
.home-ps, .home-social-embeds { color: var(--fg-soft); }

/* ============================================================
   RightSidebar
   ============================================================ */
.right-sidebar { font-size: .92rem; }
.right-sidebar__child-menu {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    border-top: 1px solid var(--border);
}
.right-sidebar__child-menu li {
    border-bottom: 1px solid var(--border);
    padding: .55rem .25rem;
}
.right-sidebar__child-menu-header { font-weight: 600; color: var(--fg); }
.right-sidebar__portrait { margin-bottom: 1.5rem; }
.right-sidebar__portrait img { width: 100%; border-radius: var(--radius); margin-bottom: .8rem; }
.right-sidebar__portrait h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.right-sidebar__portrait h3 a { color: var(--fg); }
.right-sidebar__portrait h4 { color: var(--fg-muted); margin: 0 0 .8rem; font-weight: 400; }
.right-sidebar__contact { width: 100%; border-collapse: collapse; }
.right-sidebar__contact td { padding: .25rem 0; vertical-align: top; }
.right-sidebar__contact td:first-child { color: var(--fg-muted); width: 6em; padding-right: 1em; }
.right-sidebar__partnerlogo { margin: 1rem 0; }
.right-sidebar__partnerlogo img { max-width: 200px; }
.right-sidebar__getty { margin-top: 1rem; }
.right-sidebar__getty img { width: 100px; height: 100px; }

/* ============================================================
   PhotoSlider (photography page)
   ============================================================ */
.photo-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.photo-slider__viewport { position: relative; aspect-ratio: 16/9; width: 100%; }
.photo-slider__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.photo-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.photo-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The image is wrapped in a button so it can be clicked to open the lightbox.
   Strip the default button chrome and have it fill its slide. */
.photo-slider__open-btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.photo-slider__open-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.photo-slider__slide figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0,0,0,.6); color: #fff; padding: .35rem .75rem; border-radius: var(--radius); font-size: .9rem; }
.photo-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; }
.photo-slider__btn svg { width: 22px; height: 22px; }
.photo-slider__btn:hover { background: rgba(0,0,0,.75); }
.photo-slider__btn--prev { left: .75rem; }
.photo-slider__btn--next { right: .75rem; }
.photo-slider__dots { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); display: flex; gap: .35rem; background: rgba(0,0,0,.35); padding: .35rem .6rem; border-radius: 999px; }
.photo-slider__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.photo-slider__dot.is-active { background: #fff; transform: scale(1.3); }

/* Caption and navigation chrome appear only while the user hovers the slider
   (or has focused something inside it via keyboard). On touch devices that
   don't support hover, they remain visible. */
@media (hover: hover) {
    .photo-slider__slide figcaption,
    .photo-slider__btn,
    .photo-slider__dots {
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .photo-slider:hover .photo-slider__slide.is-active figcaption,
    .photo-slider:focus-within .photo-slider__slide.is-active figcaption,
    .photo-slider:hover .photo-slider__btn,
    .photo-slider:focus-within .photo-slider__btn,
    .photo-slider:hover .photo-slider__dots,
    .photo-slider:focus-within .photo-slider__dots {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ------------ Lightbox modal opened on slide click ------------ */
.photo-slider-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    padding: clamp(.5rem, 3vw, 3rem);
    outline: none;                /* the dialog itself is focused for keyboard handling */
    animation: photo-slider-modal-in .18s ease-out;
}
@keyframes photo-slider-modal-in { from { opacity: 0; } to { opacity: 1; } }

.photo-slider-modal__figure {
    margin: 0;
    max-width: 100%; max-height: 100%;
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.photo-slider-modal__figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.photo-slider-modal__figure figcaption {
    color: #fff; font-size: .95rem; text-align: center;
    background: rgba(0,0,0,.55); padding: .35rem .85rem; border-radius: var(--radius);
}

.photo-slider-modal__btn,
.photo-slider-modal__close {
    position: absolute;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; border: none;
    cursor: pointer; display: grid; place-items: center;
    transition: background .15s ease;
}
.photo-slider-modal__btn svg,
.photo-slider-modal__close svg { width: 26px; height: 26px; }
.photo-slider-modal__btn:hover,
.photo-slider-modal__close:hover { background: rgba(255,255,255,.25); }

.photo-slider-modal__btn--prev  { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.photo-slider-modal__btn--next  { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.photo-slider-modal__close      { top: clamp(.5rem, 2vw, 2rem); right: clamp(.5rem, 2vw, 2rem); }

/* Full-bleed variant used on the Photography page: ignores the page container
   and uses 100% of the viewport width with a height capped at ~70vh. */
.photo-slider-fullwidth { width: 100%; margin: 1.5rem 0; }
.photo-slider-fullwidth .photo-slider { border-radius: 0; box-shadow: none; }
.photo-slider-fullwidth .photo-slider__viewport {
    aspect-ratio: unset;
    height: 70vh;
    min-height: 320px;
    max-height: 760px;
}

/* ============================================================
   Pricing post-it (photography page)
   ============================================================ */
.postit {
    position: relative;
    background: #fefabc;
    background-image: linear-gradient(135deg, #fff7a8 0%, #fde98a 100%);
    color: #2a2a25;
    padding: 1.6rem 1.5rem 1.4rem;
    margin: 2rem auto 1.5rem;
    max-width: 26rem;
    border-radius: 2px;
    box-shadow:
        0 1px 1px rgba(0,0,0,.12),
        0 6px 14px rgba(50,40,0,.18),
        0 18px 28px rgba(50,40,0,.10);
    transform: rotate(-1.4deg);
    transform-origin: center top;
    font-family: var(--font-sans);
}
.postit::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top right, rgba(0,0,0,.05) 0%, transparent 30%),
        radial-gradient(ellipse at bottom left,  rgba(0,0,0,.04) 0%, transparent 35%);
    border-radius: inherit;
}
.postit__tape {
    position: absolute;
    top: -14px; left: 50%;
    width: 90px; height: 22px;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(212, 200, 130, .55);
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.postit__title {
    margin: 0 0 .6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a2a25;
}
.postit__lead { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.5; }
.postit__price { font-weight: 700; }
.postit__vat-toggle {
    background: transparent;
    border: 0;
    padding: .05em .2em;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border-bottom: 1px dashed rgba(0,0,0,.45);
    transition: background-color .15s, border-color .15s;
}
.postit__vat-toggle:hover {
    background: rgba(0,0,0,.06);
    border-bottom-color: rgba(0,0,0,.8);
}
.postit__vat-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.postit__detail { margin: 0 0 .5rem; font-size: .92rem; line-height: 1.45; }
.postit__goal { margin: 0; font-style: italic; font-weight: 500; }

/* ============================================================
   QuoteBlock
   ============================================================ */
.quote-block {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.quote-block__text { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; margin: 0 0 .5rem; color: var(--fg-soft); }
.quote-block__mark { color: var(--accent); font-weight: 700; }
.quote-block__author { color: var(--fg-muted); font-size: .9rem; }

/* ============================================================
   Long-form testimonial (consulting page)
   ============================================================ */
.testimonial-long {
    border-left: 3px solid var(--accent-soft);
    padding: .5rem 0 .5rem 1.25rem;
    margin: 2rem 0;
}
.testimonial-long__body p { font-style: italic; color: var(--fg-soft); }
.testimonial-long__attrib { margin: .5rem 0 0; font-size: .9rem; color: var(--fg); }
.testimonial-long__role { color: var(--fg-muted); }

/* ============================================================
   Distribution / generic lists
   ============================================================ */
.bullet-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.bullet-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.bullet-list li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============================================================
   Partner page
   ============================================================ */
.partner-entry { margin: 1.5rem 0; }
.partner-entry h3 { margin-bottom: .3rem; }
.partner-entry p { margin: .3rem 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-address { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-bottom: 2rem; }
.contact-table { border-collapse: collapse; }
.contact-table td { padding: .2rem 0; }
.contact-table td:first-child { color: var(--fg-muted); padding-right: 1.2rem; }
.contact-form-hint { color: var(--fg-muted); font-size: .9rem; }

/* Stacked person cards (Harald + Eve) in the contact-page aside */
.right-sidebar--persons { display: flex; flex-direction: column; gap: 2rem; font-size: .92rem; }
.person-card { display: flex; flex-direction: column; gap: .4rem; }
.person-card__image {
    width: 100%;
    max-width: 225px;
    aspect-ratio: 225 / 338;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: .4rem;
}
.person-card__name { margin: 0; font-size: 1.1rem; }
.person-card__name a { color: var(--fg); }
.person-card__role { margin: 0 0 .4rem; color: var(--fg-muted); font-weight: 400; }
.person-card__contact { width: 100%; border-collapse: collapse; }
.person-card__contact td { padding: .2rem 0; vertical-align: top; }
.person-card__contact td:first-child { color: var(--fg-muted); width: 6em; padding-right: 1em; }

/* Google-Maps embed below the form */
.google-maps {
    margin-top: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.google-maps iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}
@media (max-width: 720px) {
    .google-maps iframe { height: 320px; }
}

/* ============================================================
   ContactForm
   ============================================================ */
.contact-form__field { display: block; margin-bottom: 1rem; }
.contact-form__field span { display: block; font-size: .85rem; color: var(--fg-soft); margin-bottom: .25rem; }
.contact-form__field input, .contact-form__field textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    color: var(--fg);
    background: #fff;
}
.contact-form__field input:focus, .contact-form__field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form__submit { background: var(--accent); color: #fff; border: none; padding: .65rem 1.4rem; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.contact-form__submit:hover { background: var(--accent-dark); }
.contact-form__submit[disabled] { opacity: .6; cursor: progress; }
.contact-form__errors, .contact-form__error { color: #b8332b; margin-bottom: 1rem; }
.contact-form__sent { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent); padding: 1rem 1.2rem; border-radius: var(--radius); }

/* ============================================================
   Blog
   ============================================================ */
.blog-language-badge {
    font-size: .85rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 2rem 0 0;
    border-top: 1px solid var(--border);
    padding-top: .8rem;
}
.blog-teaser { margin: 1.5rem 0 2rem; }
.blog-teaser__head { display: flex; flex-direction: column; gap: .25rem; }
.blog-teaser__title { margin: 0; font-size: 1.2rem; font-weight: 500; }
.blog-teaser__title a { color: var(--fg); }
.blog-teaser__title a:hover { color: var(--accent); text-decoration: none; }
.blog-teaser__date { color: var(--fg-muted); font-size: .85rem; margin-left: .5rem; white-space: nowrap; }
.blog-teaser__excerpt { color: var(--fg-soft); margin: .5rem 0; }
.blog-teaser__more { font-weight: 600; }

/* ============================================================
   Blog post rendered body (.blog-post = the rich HTML body)
   ============================================================ */
.blog-post { max-width: 50rem; }
.blog-post p, .blog-post ul, .blog-post ol { margin: 0 0 1rem; }
.blog-post ul, .blog-post ol { padding-left: 1.4rem; }
.blog-post li { padding: .15rem 0; }
.blog-post h3.signature {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    margin: 2rem 0 .5rem;
}
.blog-post pre {
    background: var(--bg-muted);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.45;
    margin: 1rem 0;
}
.blog-post code {
    background: var(--bg-muted);
    padding: .1rem .35rem;
    border-radius: 3px;
    font-size: .9em;
}
.blog-post pre code { background: none; padding: 0; }
.blog-post__back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* The original embeds images at a "preview" size, then enlarges them on hover.
   We reproduce that with a CSS scale on .blog-img inside .blog-figure. */
.blog-figure {
    margin: 1.5rem 0;
    text-align: center;
    overflow: visible;
}
.blog-img {
    display: inline-block;
    max-width: 65%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}
.blog-img:hover,
.blog-img:focus-visible {
    transform: scale(1.55);
    box-shadow: var(--shadow-md);
    z-index: 5;
    outline: none;
}
@media (max-width: 720px) {
    .blog-img { max-width: 100%; }
    .blog-img:hover, .blog-img:focus-visible { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .blog-img { transition: none; }
    .blog-img:hover, .blog-img:focus-visible { transform: none; }
}

/* Inline (non-figure) images: respect the original's small inline rendering */
.blog-post > .blog-img,
.blog-post p > .blog-img {
    max-width: 45%;
    display: block;
    margin: 1rem auto;
}

/* ============================================================
   Brand page — caredef.jpg with the original's slow spin
   ============================================================ */
.brand-figure {
    margin: 4rem 0;
    padding: 1rem 0;
    text-align: center;
}
.brand-figure__img {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    transform-origin: center center;
    /* Two run-once animations using the individual transform properties so
       rotation and scaling don't overwrite each other. Both finish together
       and `both` fill-mode keeps the final state (rotate 360°, scale 1). */
    animation:
        brand-spin 2s linear both,
        brand-grow 2s ease-out both;
}
@keyframes brand-spin {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}
@keyframes brand-grow {
    from { scale: 0.5; }
    to   { scale: 1; }
}
/*
@media (prefers-reduced-motion: reduce) {
    .brand-figure__img { animation: none; }
}
    */

/* ============================================================
   Reference list (Consulting > Referenzen)
   ============================================================ */
.reference-list__item { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--accent-soft); }
.reference-list__title { font-size: 1.05rem; margin: 0 0 .3rem; }
.reference-list__client { color: var(--fg-muted); font-size: .9rem; margin: 0 0 .4rem; }
.reference-list__client em { font-style: normal; }
.reference-list__body { margin: 0; color: var(--fg-soft); }

/* Hosting list (Distribution > Referenzen) */
.hosting-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.hosting-list li { padding: .3rem 0; border-bottom: 1px dotted var(--border); }
.hosting-list__owner { color: var(--fg-muted); font-size: .9rem; }
.hosting-list__note { color: var(--fg-muted); font-size: .85rem; }

/* ============================================================
   Imprint / Datenschutzerklärung
   ============================================================ */
.imprint { max-width: 56rem; }
.imprint h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 2rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--border);
}
.imprint h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; }
.imprint h4 { font-size: 1rem; font-weight: 600; color: var(--fg); text-transform: none; letter-spacing: 0; margin-top: 1.25rem; }
.imprint p { margin: 0 0 .8rem; }
.imprint__address {
    font-style: normal;
    background: var(--bg-muted);
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    margin: .5rem 0 1rem;
    display: inline-block;
}
.imprint__toc { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.imprint__toc li { padding: .15rem 0; }
.imprint__rights { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.imprint__rights li { padding: .2rem 0; }
.imprint__credit { color: var(--fg-muted); font-size: .85rem; font-style: italic; margin-top: 2rem; }

/* ============================================================
   SiteFooter
   ============================================================ */
.site-footer {
    background: #1d242b;
    color: #c7ced5;
    margin-top: 4rem;
    padding: 2.5rem 0 1rem;
    font-size: .9rem;
}
.site-footer a { color: #c7ced5; }
.site-footer a:hover { color: #fff; }
.site-footer__sub-header {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-bottom: .25rem;
    text-decoration: none;
}
.site-footer__columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.site-footer__col a { display: block; padding: .15rem 0; }
.site-footer__extras { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__apps-list { list-style: none; padding: 0; margin: 0; }
.site-footer__apps-list li { padding: .15rem 0; }
.site-footer__hint { color: #7d8892; font-size: .85em; }
.site-footer__meta {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    color: #7d8892;
    font-size: .85rem;
    align-items: center;
}
.site-footer__hello code { background: rgba(255,255,255,.06); padding: .1rem .35rem; border-radius: 3px; }
.site-footer__imprint { white-space: nowrap; }

/* SocialIcons */
.social-icons { list-style: none; padding: 0; margin: 0; }
.social-icons li { padding: .2rem 0; display: flex; align-items: center; gap: .5rem; }
.social-icons__glyph {
    display: inline-grid;
    width: 22px; height: 22px;
    place-items: center;
    border-radius: 3px;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
}
.social-icons__glyph--facebook { background: #1877f2; font-family: Georgia, serif; }
.social-icons__glyph--twitter { background: #000; }

/* ============================================================
   CookieConsent
   ============================================================ */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background-color: #fff;
    border-top: 1px solid #999;
    padding: .9rem 1.5rem;
    text-align: center;
    box-shadow: 0 -2px 3px rgba(0,0,0,.2);
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(50,50,50,.08) 5px, rgba(50,50,50,.08) 10px);
}
.cookie-consent__text { margin: 0 0 .6rem; font-size: .9rem; }
.cookie-consent__buttons {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cookie-consent__btn {
    background: #fff;
    border: 1px solid #303030;
    border-radius: var(--radius);
    padding: .25rem .9rem;
    cursor: pointer;
    font: inherit;
}
.cookie-consent__btn--accept:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-consent__btn--reject       { color: var(--fg-soft); border-color: #999; }
.cookie-consent__btn--reject:hover { background: #f0f0f0; }

/* ============================================================
   Blazor template error UI
   ============================================================ */
#blazor-error-ui {
    color-scheme: light only;
    background: #ffeb3b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .layout-grid { grid-template-columns: 1fr; }
    .home-columns { grid-template-columns: 1fr; }
    .site-footer__columns { grid-template-columns: repeat(2, 1fr); }
    .site-footer__extras { grid-template-columns: 1fr; }
    .site-footer__meta { grid-template-columns: 1fr; gap: .5rem; text-align: left; }
    .text-carousel__slide { padding: 1.5rem 3rem; }
    .text-carousel__slogan { font-size: 1.2rem; }
    .contact-address { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-footer__columns { grid-template-columns: 1fr; }
    .site-header__nav { gap: 1rem; }
    .site-header__link { font-size: .85rem; }
}
