/* ============================================================
   Classic Dominion — Homepage CSS v3 (Modern)
   Palette:
     bg-main     #f5f2ee   warm off-white (lighter than before)
     bg-card     #ffffff
     bg-dark     #150d05   very deep brown-black
     bg-mid      #1e1208   dark mid (hero / why-play)
     gold        #d4a843   slightly brighter gold
     gold-light  #e8bf65
     gold-muted  #9a7530
     text-main   #1e1208
     text-muted  #7a6a58
     border      rgba(0,0,0,0.08)
   Fonts: system-ui (body) / Georgia (headings)
   ============================================================ */

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body.cd-homepage {
    background-color: #f5f2ee;
    color: #1e1208;
    font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

/* ---- Utilities --------------------------------------------- */
.cd-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.cd-section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e1208;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background-color: #d4a843;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Buttons ----------------------------------------------- */
.cd-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s, opacity 0.15s;
}
.cd-btn:hover { transform: translateY(-2px); }
.cd-btn-primary {
    background-color: #d4a843;
    color: #150d05;
    box-shadow: 0 2px 8px rgba(212,168,67,0.35);
}
.cd-btn-primary:hover {
    background-color: #e8bf65;
    box-shadow: 0 6px 20px rgba(212,168,67,0.45);
}
.cd-btn-secondary {
    background: transparent;
    color: #d4a843;
    border: 1.5px solid #d4a843;
}
.cd-btn-secondary:hover {
    background: rgba(212,168,67,0.1);
    border-color: #e8bf65;
    color: #e8bf65;
}
.cd-btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.22);
    font-weight: 400;
}
.cd-btn-outline:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.35);
}
.cd-btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* ---- Header ----------------------------------------------- */
#cd-header {
    background-color: #150d05;
    border-bottom: 1px solid rgba(212,168,67,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#cd-header .cd-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.cd-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #d4a843;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.cd-logo span {
    color: rgba(255,255,255,0.35);
    font-family: system-ui, Arial, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    display: block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1px;
}
#cd-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#cd-nav a {
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    letter-spacing: 0.01em;
}
#cd-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.07);
}
/* Active page indicator */
#cd-nav a.cd-nav-active {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    position: relative;
}
#cd-nav a.cd-nav-active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: #d4a843;
    border-radius: 2px;
}
/* Register — outlined CTA (distinct but NOT "active" look) */
#cd-nav a.cd-nav-register {
    color: #d4a843;
    border-color: rgba(212,168,67,0.55);
    font-weight: 600;
    background: transparent;
}
#cd-nav a.cd-nav-register:hover {
    background: rgba(212,168,67,0.12);
    border-color: #d4a843;
    color: #e8c96a;
}
/* Register active (on anmelden.php) — filled */
#cd-nav a.cd-nav-register.cd-nav-active {
    background: #d4a843;
    color: #150d05;
    border-color: #d4a843;
}
#cd-nav a.cd-nav-register.cd-nav-active::after { display: none; }
/* Enter Game — solid green CTA */
#cd-nav a.cd-nav-entergame {
    background: rgba(100,120,55,0.9);
    color: #e8f0c8;
    font-weight: 700;
    border-color: rgba(140,165,75,0.5);
    letter-spacing: 0.02em;
}
#cd-nav a.cd-nav-entergame:hover {
    background: rgba(115,140,63,1);
    border-color: rgba(155,185,80,0.7);
}
/* Logout — subtle de-emphasized link */
#cd-nav a.cd-nav-logout {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    padding: 7px 9px;
}
#cd-nav a.cd-nav-logout:hover {
    color: rgba(255,255,255,0.55);
    background: transparent;
    border-color: transparent;
}

/* ---- Hero -------------------------------------------------- */
#cd-hero {
    background: linear-gradient(175deg, #1e1208 0%, #2d1c0a 45%, #1a1005 100%);
    color: #fff;
    padding: 64px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#cd-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,168,67,0.07) 0%, transparent 70%);
    pointer-events: none;
}
#cd-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    color: #d4a843;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
#cd-hero .cd-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
#cd-hero .cd-hero-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.38);
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}
.cd-hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ---- Why Play (dark strip) --------------------------------- */
#cd-why {
    background-color: #1e1208;
    border-top: 1px solid rgba(212,168,67,0.12);
    border-bottom: 1px solid rgba(212,168,67,0.12);
    padding: 28px 24px;
}
.cd-why-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
    text-align: center;
}
.cd-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cd-why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 18px 14px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cd-why-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.cd-why-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    color: #d4a843;
    margin-bottom: 7px;
    line-height: 1.3;
}
.cd-why-card p {
    font-size: 0.77rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.55;
}

/* ---- Server Card ------------------------------------------- */
#cd-stats {
    padding: 36px 24px;
    background-color: #f5f2ee;
}
.cd-server-card {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.07);
}
.cd-server-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background-color: #150d05;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cd-live-badge {
    background-color: #4a6628;
    color: #a8d060;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid rgba(168,208,96,0.2);
}
.cd-server-info { flex: 1; min-width: 0; }
.cd-server-label {
    font-size: 0.63rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2px;
}
.cd-server-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.97rem;
    color: #d4a843;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.cd-stats-grid { display: flex; }
.cd-stat-card {
    flex: 1;
    text-align: center;
    padding: 22px 16px;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.cd-stat-card:last-child { border-right: none; }
.cd-stat-number {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    color: #d4a843;
    font-weight: bold;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.cd-stat-label {
    font-size: 0.7rem;
    color: #9a8876;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ---- What is ---------------------------------------------- */
#cd-what-is {
    padding: 36px 24px;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
#cd-what-is .cd-container p {
    font-size: 0.93rem;
    color: #3a2c1e;
    margin-bottom: 12px;
    max-width: 700px;
    line-height: 1.7;
}
#cd-what-is .cd-disclaimer {
    font-size: 0.76rem;
    color: #9a8876;
    font-style: italic;
    padding: 8px 14px;
    border-left: 3px solid rgba(212,168,67,0.5);
    background-color: #faf8f4;
    border-radius: 0 4px 4px 0;
    display: inline-block;
    margin-top: 6px;
}

/* ---- Screenshots ------------------------------------------ */
#cd-screenshots {
    padding: 36px 24px;
    background-color: #f5f2ee;
}
.cd-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.cd-screenshot-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.07);
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #1a1005;
}
.cd-screenshot-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.16), 0 1px 4px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.cd-screenshot-item img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
    transition: opacity 0.22s, transform 0.28s;
}
.cd-screenshot-item:hover img { opacity: 0.72; transform: scale(1.06); }
.cd-screenshot-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(21,13,5,0.92) 0%, transparent 100%);
    color: rgba(255,255,255,0.88);
    font-size: 0.68rem;
    text-align: center;
    padding: 14px 4px 6px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    letter-spacing: 0.04em;
}
.cd-screenshot-item:hover .cd-screenshot-overlay { opacity: 1; }

/* ---- Getting Started -------------------------------------- */
#cd-getting-started {
    padding: 36px 24px;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cd-steps {
    list-style: none;
    counter-reset: steps;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cd-steps li {
    counter-increment: steps;
    background-color: #faf8f4;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    padding: 20px 14px 16px;
    text-align: center;
}
.cd-steps li::before {
    content: counter(steps);
    display: block;
    width: 30px;
    height: 30px;
    background-color: #d4a843;
    color: #150d05;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    margin: 0 auto 12px;
    box-shadow: 0 2px 8px rgba(212,168,67,0.35);
}
.cd-steps li h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.87rem;
    color: #1e1208;
    margin-bottom: 5px;
}
.cd-steps li p { font-size: 0.76rem; color: #9a8876; line-height: 1.5; }

/* ---- News -------------------------------------------------- */
#cd-news {
    padding: 32px 24px;
    background-color: #f5f2ee;
}
.cd-news-box {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-left: 3px solid #d4a843;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    max-width: 600px;
    font-size: 0.9rem;
    color: #3a2c1e;
    line-height: 1.65;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cd-news-box .cd-news-date {
    font-size: 0.74rem;
    color: #9a8876;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Footer ----------------------------------------------- */
#cd-footer {
    background-color: #150d05;
    color: rgba(255,255,255,0.45);
    padding: 36px 24px 24px;
    border-top: 1px solid rgba(212,168,67,0.15);
}
#cd-footer .cd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.cd-footer-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: #d4a843;
}
.cd-footer-sub { font-size: 0.74rem; color: rgba(255,255,255,0.25); }
.cd-footer-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.cd-footer-links a {
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.18s;
}
.cd-footer-links a:hover { color: #d4a843; }
.cd-footer-links span { color: rgba(255,255,255,0.15); font-size: 0.78rem; }
.cd-footer-legal {
    font-size: 0.71rem;
    color: rgba(255,255,255,0.2);
    max-width: 560px;
    line-height: 1.55;
    font-style: italic;
}
.cd-footer-copy { font-size: 0.71rem; color: rgba(255,255,255,0.18); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 820px) {
    .cd-why-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-screenshot-grid { grid-template-columns: repeat(3, 1fr); }
    .cd-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    #cd-hero { padding: 44px 20px 36px; }
    #cd-hero h1 { font-size: 2rem; }
    .cd-why-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cd-screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-steps { grid-template-columns: 1fr 1fr; }
    .cd-stats-grid { flex-direction: column; }
    .cd-stat-card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 16px; }
    .cd-stat-card:last-child { border-bottom: none; }
    #cd-header .cd-header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cd-hero-buttons { flex-direction: column; align-items: center; }
    .cd-btn { width: 100%; text-align: center; }
    .cd-server-card-header { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 400px) {
    .cd-why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inner Pages — Login / Register / Logout / Tutorial / Manual
   ============================================================ */

/* Small hero bar */
.cd-page-hero {
    background: linear-gradient(175deg, #1e1208 0%, #2d1c0a 100%);
    padding: 28px 24px;
    border-bottom: 1px solid rgba(212,168,67,0.15);
}
.cd-page-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    color: #d4a843;
    font-weight: bold;
    max-width: 960px;
    margin: 0 auto;
}
.cd-page-hero p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Main content */
.cd-page-main {
    min-height: calc(100vh - 200px);
    padding: 36px 24px 60px;
}
.cd-page-inner {
    max-width: 640px;
    margin: 0 auto;
}
.cd-page-inner.cd-wide {
    max-width: 860px;
}

/* Form card */
.cd-form-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.07);
}

/* Form rows */
.cd-form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cd-form-row:last-child { border-bottom: none; }
.cd-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a2c1e;
    min-width: 110px;
    flex-shrink: 0;
}

/* Inputs */
.cd-input {
    background: #faf8f4;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    color: #1e1208;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
}
.cd-input:focus {
    border-color: #d4a843;
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
    background: #fff;
}
select.cd-input { cursor: pointer; }

/* Error inline */
.cd-field-error {
    font-size: 0.76rem;
    color: #c0392b;
    margin-top: 3px;
    display: block;
}

/* Error box */
.cd-error-box {
    background: rgba(192,57,43,0.06);
    border: 1px solid rgba(192,57,43,0.18);
    border-left: 3px solid #c0392b;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #7a1010;
    line-height: 1.6;
}
.cd-error-box a { color: #c0392b; }

/* Info box */
.cd-info-box {
    background: rgba(212,168,67,0.07);
    border: 1px solid rgba(212,168,67,0.2);
    border-left: 3px solid #d4a843;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #5a4010;
    line-height: 1.6;
}

/* Radio / checkbox rows */
.cd-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #3a2c1e;
    cursor: pointer;
}
.cd-check-row input { cursor: pointer; accent-color: #d4a843; }

/* Tribe + position two-column */
.cd-tribe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
}
.cd-tribe-col { display: flex; flex-direction: column; gap: 4px; }

/* Section separator within form card */
.cd-form-section { margin-top: 22px; }
.cd-form-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9a8876;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Submit row */
.cd-form-submit {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Countdown (server not open) */
.cd-countdown-wrap {
    text-align: center;
    padding: 28px 0;
}
.cd-countdown-wrap > p {
    color: #7a6a58;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.activation_time {
    display: inline-block;
    font-family: Georgia, serif;
    font-size: 2.2rem;
    color: #d4a843;
    font-weight: bold;
    letter-spacing: 0.08em;
}

/* Server not opened notice */
.cd-server-closed-notice {
    text-align: center;
    padding: 30px 0;
}
.cd-server-closed-notice p {
    font-size: 1.1rem;
    color: #c0392b;
    font-weight: 600;
}

/* Logout page */
.cd-logout-wrap {
    text-align: center;
    padding: 48px 0 24px;
}
.cd-logout-wrap h2 {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: #1e1208;
    margin-bottom: 14px;
}
.cd-logout-wrap p {
    font-size: 0.9rem;
    color: #7a6a58;
    margin-bottom: 8px;
    line-height: 1.6;
}
.cd-logout-wrap a:not(.cd-btn) { color: #d4a843; text-decoration: none; }
.cd-logout-wrap a:not(.cd-btn):hover { text-decoration: underline; }

/* Registration closed */
.cd-reg-closed {
    text-align: center;
    padding: 32px 0;
    color: #7a6a58;
    font-size: 0.95rem;
}

/* Tutorial / Manual */
.cd-doc-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cd-doc-nav a {
    display: inline-block;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #7a6a58;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 5px;
    text-decoration: none;
    background: #fff;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cd-doc-nav a:hover, .cd-doc-nav a.active {
    background: #d4a843;
    color: #150d05;
    border-color: #d4a843;
}
.cd-doc-content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    line-height: 1.7;
    font-size: 0.92rem;
    color: #3a2c1e;
}
.cd-doc-content h1, .cd-doc-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #1e1208;
    margin: 18px 0 8px;
}
.cd-doc-content h1 { font-size: 1.3rem; }
.cd-doc-content h2 { font-size: 1.05rem; }
.cd-doc-content p { margin-bottom: 10px; }
.cd-doc-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 0.85rem;
}
.cd-doc-content table th,
.cd-doc-content table td {
    border: 1px solid rgba(0,0,0,0.09);
    padding: 7px 10px;
    text-align: left;
}
.cd-doc-content table th {
    background: #f5f2ee;
    font-weight: 600;
    color: #1e1208;
}
.cd-doc-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* Responsive inner pages */
@media (max-width: 600px) {
    .cd-form-card { padding: 18px 14px; }
    .cd-form-row { flex-direction: column; align-items: flex-start; gap: 5px; }
    .cd-form-label { min-width: auto; }
    .cd-tribe-grid { grid-template-columns: 1fr; }
    .cd-page-hero h1 { font-size: 1.2rem; }
    .cd-doc-content { padding: 18px 14px; }
}

/* ===== Guide page (unified tutorial + manual) ===== */
.cd-guide-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.cd-guide-tab {
    padding: 9px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7a6a58;
    text-decoration: none;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.10);
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    margin-bottom: -1px;
    transition: color 0.15s, background 0.15s;
    position: relative;
}
.cd-guide-tab.active {
    color: #d4a843;
    background: #fffdf8;
    border-color: #d4a843;
    border-bottom: 1.5px solid #fffdf8;
    z-index: 1;
}
.cd-guide-tab:not(.active):hover {
    color: #1e1208;
    background: #f5f2ee;
}

/* Tutorial nav table (prev/next) inside .cd-doc-content */
.cd-doc-content table#tutorial_nav {
    margin-top: 22px;
    background: transparent;
    border: none;
    width: 100%;
}
.cd-doc-content table#tutorial_nav,
.cd-doc-content table#tutorial_nav th,
.cd-doc-content table#tutorial_nav td {
    border: none;
    background: transparent;
}
.cd-doc-content table#tutorial_nav td {
    padding: 0;
    width: 50%;
}
.cd-doc-content table#tutorial_nav td.nav_prev { text-align: left; }
.cd-doc-content table#tutorial_nav td.nav_next { text-align: right; }
.cd-doc-content table#tutorial_nav a {
    display: inline-block;
    padding: 7px 16px;
    background: #d4a843;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}
.cd-doc-content table#tutorial_nav a:hover { background: #b88c2e; }

/* Tutorial content table (visual images) */
.cd-doc-content .tutorial_table { width: 100%; border: none; }
.cd-doc-content .tutorial_table th,
.cd-doc-content .tutorial_table td {
    border: none;
    background: transparent;
    padding: 10px;
    vertical-align: top;
}
.cd-doc-content .tutorial_table .visual {
    width: 50%;
    text-align: center;
    font-size: 0.82rem;
    color: #7a6a58;
}
.cd-doc-content .tutorial_table .beschreibung {
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: 12px;
}

/* Manual (Anleitung) content */
.cd-doc-content .question {
    font-weight: 700;
    color: #1e1208;
    font-size: 0.9rem;
    margin: 18px 0 4px;
}
.cd-doc-content .answer {
    color: #5a4a38;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 10px;
}
.cd-doc-content p.f9,
.cd-doc-content .f9 {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3a2e24;
}
.cd-doc-content ul {
    margin: 6px 0 12px 20px;
    font-size: 0.88rem;
    color: #5a4a38;
}
.cd-doc-content ul li { margin-bottom: 4px; }

/* Responsive guide */
@media (max-width: 600px) {
    .cd-guide-tab { padding: 7px 14px; font-size: 0.82rem; }
    .cd-doc-content .tutorial_table .visual { width: 100%; display: block; }
    .cd-doc-content .tutorial_table,
    .cd-doc-content .tutorial_table tbody,
    .cd-doc-content .tutorial_table tr { display: block; }
}
