/* =================================================================
   Sammelpunkte – Custom Ghost Theme
   ================================================================= */

/* -----------------------------
   1. Design tokens
   ----------------------------- */
:root {
    --color-bg:            #000000;
    --color-bg-soft:       #111111;
    --color-bg-light:      #e8e8e8;
    --color-text:          #ffffff;
    --color-text-dark:     #111111;
    --color-text-muted:    rgba(255, 255, 255, 0.65);
    --color-yellow:        #ffec00;
    --color-cyan:          #45bfd9;
    --color-cyan-hover:    #2fb0cc;

    --font-serif:          'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --font-sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --container-max:       1200px;
    --container-pad:       clamp(1.25rem, 4vw, 3rem);

    --radius-sm:           4px;
    --radius-md:           8px;

    --transition:          200ms ease;
}

/* -----------------------------
   2. Reset + base
   ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

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

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* -----------------------------
   3. Buttons
   ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85em 1.6em;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cyan {
    background: var(--color-cyan);
    color: var(--color-text-dark);
}
.btn-cyan:hover { background: var(--color-cyan-hover); }

/* -----------------------------
   4. Hero
   ----------------------------- */
.hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem);
    background: var(--color-bg);
}

.hero-logo {
    text-align: center;
    margin-bottom: clamp(3rem, 9vw, 7rem);
}
.hero-logo img {
    display: inline-block;
    max-width: min(440px, 70vw);
    height: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-text { max-width: 32rem; }

.hero-headline {
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--color-text);
    margin-bottom: 2rem;
    max-width: 30rem;
}

.hero-visual {
    position: relative;
}
.hero-visual img {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,.5));
}

/* -----------------------------
   5. Feature / Detail section
   ----------------------------- */
.feature {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--color-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.feature-visual {
    text-align: center;
}
.feature-visual img {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,.5));
}

.feature-text { max-width: 36rem; }

.feature-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
    white-space: pre-line;
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--color-text);
    margin-bottom: 0;
}

/* -----------------------------
   6. Signup section
   ----------------------------- */
.signup-section {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
    background: var(--color-bg);
    text-align: center;
}

.signup-headline {
    color: var(--color-yellow);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.signup-description {
    color: var(--color-yellow);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
}

/* The form itself */
.signup-form {
    background: #ffffff;
    color: var(--color-text-dark);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-md);
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    text-align: left;
    position: relative;
}

.signup-form input[type="email"] {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.95em 1.1em;
    font: inherit;
    color: var(--color-text-dark);
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.signup-form input[type="email"]::placeholder {
    color: #999;
}
.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-text-dark);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.signup-submit {
    flex: 0 0 auto;
    padding: 0.95em 2.25em;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
    position: relative;
    min-width: 140px;
}
.signup-submit:hover { background: #2a2a2a; }
.signup-submit:active { transform: translateY(1px); }

.signup-submit-loading {
    display: none;
    align-items: center;
    justify-content: center;
}
.signup-submit-loading svg {
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Ghost adds .loading / .success / .error classes to the form */
.signup-form.loading .signup-submit-default { display: none; }
.signup-form.loading .signup-submit-loading { display: inline-flex; }
.signup-form.loading input,
.signup-form.loading .signup-submit { pointer-events: none; opacity: 0.85; }

.signup-message {
    display: none;
    width: 100%;
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}
.signup-form.success .signup-message-success {
    display: block;
    color: #117a3a;
}
.signup-form.error .signup-message-error {
    display: block;
    color: #b3261e;
}

/* -----------------------------
   7. Bände grid
   ----------------------------- */
.bands {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
}

.bands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.band {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.band-cover {
    aspect-ratio: 3 / 4;
    background: #d8d8d8;
    overflow: hidden;
    border-radius: 2px;
}
.band-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}
.band:hover .band-cover img { transform: scale(1.03); }

.band-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 0 0;
}

.band-description {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    color: var(--color-text-dark);
}
.band-description strong { font-weight: 700; }

/* -----------------------------
   8. Navigation (used on blog/post pages, hidden on landing)
   ----------------------------- */
.site-nav {
    background: var(--color-bg);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-nav-brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--color-text);
}
.site-nav-brand img { max-height: 28px; width: auto; }
.site-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.site-nav-menu a {
    font-size: 0.95rem;
    color: var(--color-text);
    transition: opacity var(--transition);
}
.site-nav-menu a:hover { opacity: 0.65; }

/* Hide global navigation on the landing page – the design has its own
   centered logo at the top of the hero. */
body.home-template .site-nav { display: none; }

/* Post tag pill, primary tag, excerpt */
.post-primary-tag {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-yellow);
}
.post-primary-tag a { color: inherit; }
.post-excerpt {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0 1.25rem;
    line-height: 1.5;
}
.post-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.post-tag {
    font-size: 0.85rem;
    padding: 0.35em 0.8em;
    background: var(--color-bg-soft);
    border-radius: 999px;
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition);
}
.post-tag:hover { background: var(--color-yellow); color: var(--color-text-dark); }

/* -----------------------------
   9. Footer
   ----------------------------- */
.site-footer {
    background: #ffffff;
    color: #4a4a4a;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    border-top: 1px solid #e8e8e8;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.9rem;
}
.site-footer-copy a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.site-footer-copy a:hover { border-bottom-color: #4a4a4a; }

.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    align-items: center;
}

.site-footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.site-footer-social svg {
    width: 18px;
    height: 18px;
}
.site-footer-social a {
    color: var(--color-text-dark);
    display: inline-flex;
    transition: opacity var(--transition);
}
.site-footer-social a:hover { opacity: 0.65; }

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.95rem;
}
.site-footer-links a:hover { opacity: 0.65; }

/* -----------------------------
   9. Blog index / post / page (for the rest of the Ghost site)
   ----------------------------- */
.blog-list {
    padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad);
}
.blog-list-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-card-image { width: 100%; height: auto; display: block; }
.post-card-content { padding: 1.25rem 1.5rem 1.5rem; }
.post-card-title { font-size: 1.25rem; margin-bottom: 0.6rem; }
.post-card-title a:hover { color: var(--color-yellow); }
.post-card-excerpt { color: var(--color-text-muted); font-size: 0.95rem; }
.post-card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

.post {
    padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad);
    max-width: 760px;
}
.post-header { margin-bottom: 2rem; }
.post-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.post-meta { color: var(--color-text-muted); font-size: 0.95rem; }
.post-feature-image { margin: 2rem 0; }
.post-feature-image img { width: 100%; border-radius: var(--radius-md); }
.post-content { font-size: 1.05rem; line-height: 1.7; }
.post-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.85rem; }
.post-content p { margin-bottom: 1.25em; }
.post-content a { color: var(--color-yellow); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-content blockquote {
    border-left: 3px solid var(--color-yellow);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-style: italic;
}
.post-content code {
    background: var(--color-bg-soft);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--color-bg-soft);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* Koenig editor card-width classes (required by Ghost) */
.post-content .kg-width-wide,
.post-content .kg-width-full {
    position: relative;
    margin-left: 50%;
    transform: translateX(-50%);
}
.post-content .kg-width-wide {
    width: min(1040px, 92vw);
    max-width: none;
}
.post-content .kg-width-full {
    width: 100vw;
    max-width: none;
}
.post-content .kg-width-full img,
.post-content .kg-width-wide img {
    width: 100%;
    height: auto;
    border-radius: 0;
}
.post-content figure { margin: 1.75rem 0; }
.post-content figure img { width: 100%; height: auto; }
.post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}
.post-content .kg-image-card,
.post-content .kg-gallery-card,
.post-content .kg-embed-card,
.post-content .kg-bookmark-card {
    margin: 1.75rem 0;
}
.post-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.post-content .kg-gallery-row {
    display: flex;
    gap: 0.75rem;
}
.post-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-content .kg-bookmark-card {
    display: block;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-content .kg-bookmark-container {
    display: flex;
    color: inherit;
    text-decoration: none;
}
.post-content .kg-bookmark-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
}
.post-content .kg-bookmark-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.post-content .kg-bookmark-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.post-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------
   10. Responsive
   ----------------------------- */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-visual { order: -1; }
    .hero-visual img { max-width: 540px; margin: 0 auto; }
    .hero-text { max-width: none; }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .feature-text { max-width: none; }

    .bands-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
    .hero { padding-top: 2rem; }
    .hero-logo { margin-bottom: 2.5rem; }
    .hero-logo img { max-width: 230px; }

    .signup-form {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .signup-form input[type="email"] {
        flex: 0 1 auto;          /* reset desktop flex-basis so it doesn't grow vertically */
        width: 100%;
        padding: 0.8em 1em;      /* slightly tighter on mobile */
    }
    .signup-submit {
        width: 100%;
        padding: 0.85em 1.5em;
        min-width: 0;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .site-footer-meta { width: 100%; justify-content: space-between; }

    .bands-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .band-cover { max-width: 280px; margin: 0 auto; aspect-ratio: 3/4; }
}

/* -----------------------------
   11. Focus styles for accessibility
   ----------------------------- */
:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 3px;
    border-radius: 2px;
}
.signup-form input[type="email"]:focus-visible {
    outline: none;
}
