:root {
    --st-bg: #ffffff;
    --st-soft: #f7f7f9;
    --st-text: #202124;
    --st-muted: #686b73;
    --st-border: #e7e7eb;
    --st-accent: #e84371;
    --st-accent-dark: #c9335d;
    --st-dark: #1d1e24;
    --st-radius: 18px;
    --st-shadow: 0 14px 40px rgba(21, 22, 26, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--st-text);
    background: var(--st-bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }

.st-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.st-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--st-border);
    backdrop-filter: blur(12px);
}

.st-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.st-brand {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.st-brand span { color: var(--st-accent); }

.st-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.st-nav a {
    text-decoration: none;
    font-size: 0.94rem;
}

.st-nav a:hover,
.st-text-link:hover,
.st-side-link:hover {
    color: var(--st-accent);
}

.st-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--st-accent);
    border-radius: 999px;
    background: var(--st-accent);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}

.st-button:hover {
    background: var(--st-accent-dark);
    border-color: var(--st-accent-dark);
    transform: translateY(-1px);
}


/* Hero-CTAs: auf Desktop bewusst prominenter */
.st-actions .st-button {
    min-height: 56px;
    padding: 0 30px;
    font-size: 1.05rem;
}

.st-button-small {
    min-height: 40px;
    padding: 0 17px;
    font-size: 0.88rem;
}

.st-button-secondary {
    color: var(--st-text) !important;
    background: #fff;
    border-color: var(--st-border);
}

.st-button-secondary:hover {
    background: var(--st-soft);
    border-color: #d7d7dd;
}

.st-hero {
    padding: 34px 0 64px;
    background:
        radial-gradient(circle at 85% 15%, rgba(232, 67, 113, 0.12), transparent 29rem),
        linear-gradient(180deg, #fff 0%, #fbf8f9 100%);
}

.st-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 42px;
    color: var(--st-muted);
    font-size: 0.85rem;
}

.st-breadcrumb a {
    color: var(--st-muted);
    text-decoration: none;
}

.st-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr);
    gap: 54px;
    align-items: center;
}

.st-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--st-accent);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.st-hero h1,
.st-section h2 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.st-hero h1 {
    max-width: 760px;
    font-size: clamp(2.35rem, 6vw, 4.3rem);
}

.st-lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #555862;
    font-size: 1.16rem;
}

.st-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.st-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin-top: 26px;
    color: var(--st-muted);
    font-size: .88rem;
}

.st-quicklinks {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.st-quicklinks h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.st-quicklinks > a {
    display: block;
    padding: 15px 0;
    border-top: 1px solid var(--st-border);
    text-decoration: none;
}

.st-quicklinks strong,
.st-quicklinks span {
    display: block;
}

.st-quicklinks span {
    margin-top: 2px;
    color: var(--st-muted);
    font-size: .84rem;
}

.st-section { padding: 72px 0; }
.st-section-soft { background: var(--st-soft); }

.st-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.st-section-head h2,
.st-local-content > h2 {
    font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.st-text-link {
    white-space: nowrap;
    color: var(--st-accent);
    text-decoration: none;
    font-weight: 700;
}

/* Pinterest / Masonry Profilraster */
.st-profile-masonry {
    column-count: 4;
    column-gap: 18px;
}

.st-profile-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(21, 22, 26, 0.08);
}

.st-profile-item hr {
    display: none !important;
}

.st-profile-item img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    filter: blur(5px);
}

.st-profile-item > * {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
}

.st-profile-item p,
.st-profile-item .profile-text,
.st-profile-item .description,
.st-profile-item .usertext {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 14px 14px !important;
    color: var(--st-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.st-profile-item h1,
.st-profile-item h2,
.st-profile-item h3,
.st-profile-item h4,
.st-profile-item h5,
.st-profile-item h6,
.st-profile-item strong,
.st-profile-item .name,
.st-profile-item .age,
.st-profile-item .gender,
.st-profile-item .town,
.st-profile-item .location {
    margin-left: 14px !important;
    margin-right: 14px !important;
}

.st-profile-item a {
    text-decoration: none;
}

.st-profile-item:hover {
    box-shadow: 0 12px 30px rgba(21, 22, 26, 0.12);
    transform: translateY(-1px);
    transition: box-shadow .2s ease, transform .2s ease;
}

.st-center {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.st-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 54px;
    align-items: start;
}

.st-local-content { min-width: 0; }

.st-intro {
    max-width: 760px;
    margin: 15px 0 28px;
    color: var(--st-muted);
    font-size: 1.08rem;
}

.st-town-figure {
    margin: 28px 0 34px;
}

.st-town-figure-lower {
    margin-top: 38px;
}

.st-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--st-radius);
    background: #ececef;
    box-shadow: var(--st-shadow);
}

.st-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.st-ai-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(16, 16, 18, .66);
    color: #fff;
    font-size: .7rem;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.st-town-figure figcaption {
    margin-top: 8px;
    color: var(--st-muted);
    font-size: .78rem;
}

.st-htmlnormal {
    font-size: 1.02rem;
}

.st-htmlnormal h3,
.st-htmlnormal h4 {
    margin: 34px 0 8px;
    line-height: 1.25;
}

.st-htmlnormal h4 {
    font-size: 1.28rem;
}

.st-htmlnormal p {
    margin: 0 0 18px;
}

.st-htmlnormal a {
    color: var(--st-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.st-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 44px;
    padding: 28px;
    border-radius: var(--st-radius);
    background: var(--st-dark);
    color: #fff;
}

.st-cta-card h3 {
    margin: 0;
    font-size: 1.55rem;
}

.st-cta-card p {
    margin: 7px 0 0;
    color: #c9cad0;
}

.st-sidebar {
    position: sticky;
    top: 96px;
}

.st-card {
    padding: 22px;
    border: 1px solid var(--st-border);
    border-radius: 14px;
    background: #fff;
}

.st-card + .st-card {
    margin-top: 18px;
}

.st-card h3 {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.st-nearby {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.st-nearby a {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--st-soft);
    color: #50525a;
    text-decoration: none;
    font-size: .8rem;
}

.st-nearby a:hover {
    background: #fbe9ef;
    color: var(--st-accent);
}

.st-side-link {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--st-border);
    text-decoration: none;
    font-size: .9rem;
}

.st-footer {
    padding: 44px 0 24px;
    background: #17181d;
    color: #d9dae0;
}

.st-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.st-footer p {
    margin: 7px 0 0;
    color: #9597a0;
}

.st-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.st-footer nav a {
    color: #d9dae0;
    text-decoration: none;
}

.st-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #83858e;
    font-size: .8rem;
}

@media (max-width: 1100px) {
    .st-profile-masonry {
        column-count: 3;
    }
}

@media (max-width: 980px) {
    .st-nav > a:not(.st-button) {
        display: none;
    }

    .st-hero-grid,
    .st-content-layout {
        grid-template-columns: 1fr;
    }

    .st-quicklinks {
        max-width: 620px;
    }

    .st-profile-masonry {
        column-count: 2;
    }

    .st-sidebar {
        position: static;
    }

    .st-cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .st-container {
        width: min(100% - 28px, 1180px);
    }

    .st-header-inner {
        min-height: 64px;
    }

    .st-brand {
        font-size: 1.1rem;
    }

    .st-nav {
        gap: 8px;
    }

    .st-nav-login {
        display: none !important;
    }

    .st-hero {
        padding: 22px 0 46px;
    }

    .st-breadcrumb {
        margin-bottom: 28px;
    }

    .st-actions {
        display: grid;
    }

    .st-button {
        width: 100%;
    }

    .st-profile-masonry {
        column-count: 1;
    }

    .st-section {
        padding: 52px 0;
    }

    .st-section-head {
        align-items: start;
        flex-direction: column;
    }

    .st-text-link {
        white-space: normal;
    }
    .st-town-figure {
        width: calc(100% - 28px);
        margin-left: auto;
        margin-right: auto;
    }

    .st-image-wrap {
        border-radius: 12px;
    }

    .st-cta-card {
        padding: 22px;
    }

    .st-footer-grid {
        flex-direction: column;
    }
}


/* Keine Trennlinie unter Ortsbildern */
.st-town-figure,
.st-town-figure figcaption,
.st-image-wrap {
    border-bottom: 0 !important;
}


/* Profilkarten 2026 */
.st-profile-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
}

.profile-bubble {
    overflow: hidden;
    width: 100%;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(21, 22, 26, 0.08);
    transition: box-shadow .2s ease, transform .2s ease;
}

.profile-bubble:hover {
    box-shadow: 0 12px 30px rgba(21, 22, 26, 0.12);
    transform: translateY(-1px);
}

.profile-bubble-image {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.profile-bubble-image img {
    display: block;
    width: 100%;
    height: auto !important;
    margin: 0;
    border: 0 !important;
    filter: blur(5px);
}

.profile-bubble-content {
    padding: 13px 15px 15px;
}

.profile-bubble-title {
    color: var(--st-text);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
}

.profile-bubble-meta {
    margin-top: 3px;
    color: var(--st-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.profile-bubble-text {
    margin: 10px 0 0;
    color: #555862;
    font-size: .88rem;
    line-height: 1.48;
}

.profile-bubble hr {
    display: none !important;
}

/* =========================================================
   FINAL FIX: Profil-Bubbles + mobile Ortsbilder
   ========================================================= */

/* Profilkarten: eindeutiger sichtbarer Rahmen trotz alter Partial-Styles */
.st-profile-item {
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.st-profile-item .profile-bubble {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e5e9 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(21, 22, 26, 0.10) !important;
}

.st-profile-item .profile-bubble-image {
    display: block;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.st-profile-item .profile-bubble-image img {
    display: block;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    filter: blur(5px);
}

.st-profile-item .profile-bubble-content {
    padding: 14px 16px 16px !important;
    background: #fff;
}

.st-profile-item .profile-bubble-title,
.st-profile-item .profile-bubble-meta,
.st-profile-item .profile-bubble-text {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.st-profile-item .profile-bubble-text {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Ortsbilder Desktop */
.st-town-figure {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.st-town-figure .st-image-wrap {
    width: 100%;
}

.st-town-figure .st-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* Mobile: sicherer Abstand zum Displayrand */
@media (max-width: 620px) {
    .st-town-figure {
        width: auto !important;
        max-width: none;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }

    .st-town-figure .st-image-wrap {
        width: 100%;
        border-radius: 12px;
    }

    .st-town-figure figcaption {
        padding-left: 2px;
        padding-right: 2px;
    }
}


/* === HOTFIX 2026-08-23: Profilkarten + mobile Ortsbilder === */
/* Profilkarte eindeutig sichtbar, unabhängig von alten Partial-Styles */
.st-profile-masonry .st-profile-item {
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.st-profile-masonry .st-profile-item .profile-bubble {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e2e3e8 !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 22px rgba(21, 22, 26, 0.11) !important;
}

.st-profile-masonry .st-profile-item .profile-bubble-content {
    display: block !important;
    padding: 14px 15px 16px !important;
    background: #fff !important;
}

.st-profile-masonry .st-profile-item .profile-bubble-image {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #ececef !important;
}

.st-profile-masonry .st-profile-item .profile-bubble-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    filter: blur(5px) !important;
}

/* Ortsbilder: auf Mobile wirklich innerhalb des Viewports einrücken */
@media (max-width: 620px) {
    .st-local-content .st-town-figure {
        box-sizing: border-box !important;
        width: auto !important;
        max-width: none !important;
        margin: 28px 14px 34px !important;
    }

    .st-local-content .st-town-figure.st-town-figure-lower {
        margin-top: 38px !important;
    }

    .st-local-content .st-town-figure .st-image-wrap,
    .st-local-content .st-town-figure img {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Lokaler Content als ein zusammenhängender Bereich */
.st-local-content {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(21, 22, 26, 0.06);
}

/* Ortsbilder innerhalb des globalen Content-Bereichs */
.st-local-content .st-town-figure {
    width: 100%;
    max-width: 800px;
    margin: 26px auto 32px;
}

.st-local-content .st-image-wrap {
    width: 100%;
    margin: 0;
}

/* Mobile: nur kleiner Innenabstand des globalen Containers,
   Bilder nutzen dessen gesamte verfügbare Breite. */
@media (max-width: 620px) {
    .st-content-layout {
        gap: 28px;
    }

    .st-local-content {
        padding: 14px;
        border-radius: 14px;
    }

    .st-local-content .st-town-figure {
        width: 100% !important;
        max-width: none !important;
        margin: 22px 0 28px !important;
    }

    .st-local-content .st-image-wrap,
    .st-local-content .st-image-wrap img {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .st-local-content .st-cta-card {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Feinabstimmung: mehr nutzbare Breite innerhalb des globalen Content-Rahmens */
.st-local-content {
    padding: 22px;
}

.st-local-content .st-town-figure {
    max-width: none;
    width: 100%;
    margin: 20px 0 24px;
}

@media (max-width: 620px) {
    .st-local-content {
        padding: 8px;
    }

    .st-local-content .st-town-figure {
        width: 100% !important;
        margin: 14px 0 18px !important;
    }

    .st-local-content .st-intro,
    .st-local-content .st-htmlnormal,
    .st-local-content > .st-eyebrow,
    .st-local-content > h2 {
        margin-left: 4px;
        margin-right: 4px;
    }
}
