/* ==========================================================================
   Gästebuch Atelier (GA) — style.css
   Design: Papeterie Magazin | Prefix: gb-
   Fonts: Fraunces (Headlines) + Lato (Body)
   ========================================================================== */

/* === VARIABLES === */
:root {
    --gb-primary: #C9A2A2;
    --gb-secondary: #6B2D3E;
    --gb-accent: #E8B4B8;
    --gb-bg: #FFF8F0;
    --gb-text: #2D2D2D;
    --gb-white: #FFFFFF;
    --gb-light: #FDF2F0;
    --gb-border: #f0e8e5;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === BASE === */
body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gb-text);
    background: var(--gb-bg);
}

a { color: var(--gb-secondary); transition: color 0.2s; }
a:hover { color: var(--gb-primary); }

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

/* === HEADER === */
.gb-header {
    background: var(--gb-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gb-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gb-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--gb-white);
    flex-shrink: 0;
}

.gb-logo-feather {
    width: 22px;
    height: 22px;
    opacity: 0.75;
}

.gb-logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gb-white);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.gb-logo-initials {
    font-weight: 700;
    font-size: 1.35rem;
}

.gb-logo-divider {
    color: var(--gb-accent);
    font-weight: 300;
    opacity: 0.6;
}

.gb-logo-name {
    font-weight: 300;
    font-size: 1.15rem;
}

.gb-nav {
    display: flex;
    gap: 0.2rem;
    list-style: none;
}

.gb-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.gb-nav a:hover {
    color: var(--gb-white);
    background: rgba(255,255,255,0.1);
}

/* === HERO === */
.gb-hero {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(120deg, var(--gb-secondary) 0%, var(--gb-primary) 100%);
    overflow: hidden;
}

.gb-hero--image {
    background: none;
}

.gb-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.gb-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(107,45,62,0.85) 0%, rgba(201,162,162,0.6) 100%);
}

.gb-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gb-hero-label {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.gb-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gb-white);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.gb-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
}

/* === CATEGORY BAR === */
.gb-cat-bar {
    background: var(--gb-white);
    border-bottom: 1px solid var(--gb-border);
    overflow-x: auto;
}

.gb-cat-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
}

.gb-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #888;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.gb-cat-item:hover,
.gb-cat-item.active {
    color: var(--gb-secondary);
    border-bottom-color: var(--gb-secondary);
}

.gb-cat-icon { font-size: 1.1rem; }

/* === CONTENT LAYOUT === */
.gb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.gb-content--full {
    grid-template-columns: 1fr;
    max-width: 860px;
}

/* === MAIN: Section Headings === */
.gb-main h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gb-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gb-accent);
}

/* === ARTICLE LIST (Homepage) === */
.gb-article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gb-article-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--gb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(107,45,62,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--gb-text);
}

.gb-article-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107,45,62,0.1);
}

.gb-article-thumb {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 12px 0 0 12px;
}

.gb-article-info {
    padding: 1.3rem 1.5rem 1.3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gb-article-tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--gb-light);
    color: var(--gb-secondary);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gb-article-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gb-secondary);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.gb-article-info p {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 300;
}

/* === ARTICLE CONTENT (Content Pages) === */
.gb-article {
    background: var(--gb-white);
    border-radius: 8px;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 8px rgba(107,45,62,0.05);
}

.gb-article h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gb-secondary);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.gb-article-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gb-border);
}

.gb-article-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gb-article h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gb-secondary);
    margin: 2rem 0 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.gb-article h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gb-text);
    margin: 1.5rem 0 0.8rem;
}

.gb-article p {
    margin-bottom: 1.2rem;
}

.gb-article ul, .gb-article ol {
    margin: 0 0 1.2rem 1.5rem;
}

.gb-article li {
    margin-bottom: 0.4rem;
}

.gb-article blockquote {
    border-left: 4px solid var(--gb-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--gb-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.gb-article img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* === SIDEBAR === */
.gb-sidebar h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gb-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--gb-accent);
}

.gb-sidebar-card {
    background: var(--gb-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 8px rgba(107,45,62,0.05);
}

.gb-sidebar-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

.gb-sidebar-signature {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--gb-primary);
    margin-top: 0.8rem;
    font-size: 1.1rem;
}

.gb-sidebar-cta {
    display: block;
    background: var(--gb-accent);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.gb-sidebar-cta:hover { background: var(--gb-primary); }

.gb-sidebar-cta span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gb-sidebar-cta strong {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--gb-secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.gb-sidebar-cta em {
    font-style: normal;
    font-size: 0.85rem;
    color: #666;
}

.gb-sidebar-links {
    list-style: none;
}

.gb-sidebar-links li {
    border-bottom: 1px solid var(--gb-border);
}

.gb-sidebar-links li:last-child { border-bottom: none; }

.gb-sidebar-links a {
    display: block;
    padding: 0.7rem 0;
    text-decoration: none;
    color: var(--gb-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    transition: padding-left 0.2s;
}

.gb-sidebar-links a:hover {
    padding-left: 0.5rem;
    color: var(--gb-primary);
}

.gb-sidebar-links .gb-link-emoji { margin-right: 0.4rem; }

.gb-sidebar-partners {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.gb-sidebar-partners a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.2s;
}

.gb-sidebar-partners a:hover { opacity: 0.85; }

.gb-sidebar-partners img {
    width: 100%;
    height: auto;
    display: block;
}

/* === FOOTER === */
.gb-footer {
    background: var(--gb-secondary);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem;
    margin-top: 1rem;
}

.gb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.gb-footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gb-white);
    margin-bottom: 0.5rem;
}

.gb-footer-brand + p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.gb-footer-col h4 {
    color: var(--gb-white);
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.gb-footer-col a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.gb-footer-col a:hover { color: var(--gb-accent); }

.gb-footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    text-align: center;
}

/* === LEGAL PAGES === */
.gb-legal {
    background: var(--gb-white);
    border-radius: 8px;
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 8px rgba(107,45,62,0.05);
}

.gb-legal h1 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gb-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gb-accent);
}

.gb-legal h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gb-secondary);
    margin: 2rem 0 0.8rem;
}

.gb-legal p, .gb-legal li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.gb-legal ul {
    margin: 0 0 1rem 1.5rem;
}

/* === DOWNLOAD GRID (Vorlagen) === */
.gb-download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.gb-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--gb-bg);
    border: 1px solid var(--gb-accent);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gb-text);
    transition: box-shadow 0.2s, transform 0.2s;
}
.gb-download-card:hover {
    box-shadow: 0 4px 16px rgba(107,45,62,0.12);
    transform: translateY(-2px);
}
.gb-download-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.gb-download-card strong {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--gb-secondary);
    margin-bottom: 0.3rem;
}
.gb-download-card em {
    font-style: normal;
    font-size: 0.85rem;
    color: #8c6e6e;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}
.gb-download-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gb-accent);
    color: var(--gb-white);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gb-download-card:hover .gb-download-btn {
    background: var(--gb-secondary);
}
@media (max-width: 600px) {
    .gb-download-grid { grid-template-columns: 1fr; }
}

.gb-about-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* === 404 PAGE === */
.gb-404 {
    text-align: center;
    padding: 5rem 2rem;
}

.gb-404-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.gb-404 h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    color: var(--gb-secondary);
    margin-bottom: 1rem;
}

.gb-404 p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.gb-404-link {
    display: inline-block;
    background: var(--gb-secondary);
    color: var(--gb-white);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s;
}

.gb-404-link:hover {
    background: var(--gb-primary);
    color: var(--gb-white);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .gb-content { grid-template-columns: 1fr; }
    .gb-article-row { grid-template-columns: 140px 1fr; }
    .gb-footer-inner { grid-template-columns: 1fr 1fr; }
    .gb-article { padding: 2rem; }
    .gb-legal { padding: 2rem; }
}

@media (max-width: 600px) {
    .gb-hero h1 { font-size: 2rem; }
    .gb-article-row { grid-template-columns: 1fr; }
    .gb-article-thumb { min-height: 160px; border-radius: 12px 12px 0 0; }
    .gb-article-info { padding: 1rem 1.2rem; }
    .gb-header-inner { flex-direction: column; gap: 0.6rem; }
    .gb-nav { flex-wrap: wrap; justify-content: center; }
    .gb-cat-bar-inner { padding: 0 1rem; }
    .gb-footer-inner { grid-template-columns: 1fr; }
    .gb-article { padding: 1.5rem; }
    .gb-article h1 { font-size: 1.8rem; }
    .gb-legal { padding: 1.5rem; }
    .gb-legal h1 { font-size: 1.6rem; }
}
