/* ================================================
   GERMAN STUDY GUIDE — MASTER STYLESHEET v3
   No external fonts. Pure system fonts.
   ================================================ */
:root {
  --black:   #0c0c0c;
  --white:   #fafaf8;
  --gold:    #C8963E;
  --gold2:   #e8b860;
  --golddim: rgba(200,150,62,0.14);
  --cream:   #f4f0e8;
  --gray:    #5c5c5c;
  --lgray:   #e8e3da;
  --border:  #e0dbd0;
  --sh1:     0 2px 12px rgba(0,0,0,0.07);
  --sh2:     0 8px 32px rgba(0,0,0,0.12);
  --sh3:     0 20px 60px rgba(0,0,0,0.17);
  --rad:     14px;
  --rad2:    8px;
  --fh: Georgia, 'Times New Roman', serif;
  --fb: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--white); color: var(--black); overflow-x: hidden; line-height: 1.65; font-size: 16px; }
h1,h2,h3,h4,h5 { font-family: var(--fh); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul,ol { list-style: none; }
p { line-height: 1.7; }

/* LAYOUT */
.wrap    { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.sec     { padding: 88px 0; }
.sec-sm  { padding: 60px 0; }
.dark    { background: #080808; color: var(--white); }
.dark-2  { background: #111; color: var(--white); }
.cream   { background: var(--cream); }
.white   { background: #fff; }

/* TYPE */
.eyebrow  { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.65rem; font-family: var(--fb); }
.title    { font-size: clamp(1.7rem, 3.5vw, 2.55rem); margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.subtitle { font-size: 1rem; color: var(--gray); line-height: 1.78; max-width: 540px; }
.dark .title    { color: #fff; }
.dark .subtitle { color: rgba(255,255,255,0.48); }
.dark-2 .title    { color: #fff; }
.dark-2 .subtitle { color: rgba(255,255,255,0.48); }
.tc { text-align: center; }
.tc .subtitle { margin: 0 auto; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 0.78rem 1.68rem; border-radius: var(--rad2); font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: all 0.22s; border: 2px solid transparent; font-family: var(--fb); }
.btn-gold  { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,150,62,0.32); }
.btn-dark  { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #222; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* NAV */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(8,8,8,0.97); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(200,150,62,0.2); height: 68px; }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 0 5%; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--fh); font-size: 1.32rem; font-weight: 700; color: #fff; line-height: 1.15; }
.logo span { color: var(--gold); }
.logo small { display: block; font-size: 0.5rem; color: rgba(255,255,255,0.28); font-family: var(--fb); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-item  { position: relative; }
.nav-a { color: rgba(255,255,255,0.65); font-size: 0.83rem; font-weight: 500; padding: 0.48rem 0.75rem; border-radius: 6px; transition: all 0.18s; display: flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; }
.nav-a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.arr { font-size: 0.55rem; opacity: 0.4; display: inline-block; transition: transform 0.22s; }
.nav-item:hover .arr { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 8px); left: 0; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--rad2); min-width: 215px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s; box-shadow: var(--sh3); overflow: hidden; }
.nav-item:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: 0.68rem 1.15rem; color: rgba(255,255,255,0.6); font-size: 0.83rem; transition: all 0.15s; border-bottom: 1px solid rgba(255,255,255,0.05); }
.drop a:last-child { border-bottom: none; }
.drop a:hover { color: var(--gold); background: rgba(200,150,62,0.08); padding-left: 1.5rem; }
.hb { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hb span { width: 22px; height: 2px; background: #fff; display: block; transition: 0.3s; border-radius: 2px; }
.hb.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hb.open span:nth-child(2) { opacity: 0; }
.hb.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* HERO (homepage) */
.hero { min-height: 100vh; background: #060606; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 68px; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(200,150,62,0.08) 0%, transparent 65%), radial-gradient(ellipse 45% 55% at 10% 80%, rgba(178,34,34,0.05) 0%, transparent 60%); pointer-events: none; }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; }
.flag-stripe { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(to bottom, #000 33.33%, #CC0000 33.33%, #CC0000 66.66%, #FFCE00 66.66%); }
.hero-body { position: relative; z-index: 2; max-width: 740px; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(200,150,62,0.11); border: 1px solid rgba(200,150,62,0.32); color: var(--gold); padding: 0.42rem 0.95rem; border-radius: 100px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.6rem; animation: fadeUp 0.6s both; }
.hero-body h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); color: #fff; margin-bottom: 1.4rem; letter-spacing: -0.02em; animation: fadeUp 0.6s 0.1s both; }
.hero-body h1 em { color: var(--gold); font-style: normal; }
.hero-desc { font-size: 1.03rem; color: rgba(255,255,255,0.52); max-width: 510px; line-height: 1.8; margin-bottom: 2.1rem; animation: fadeUp 0.6s 0.2s both; }
.hero-btns { display: flex; gap: 0.9rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s both; }
.hero-stats { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); animation: fadeUp 0.6s 0.42s both; }
.stat-n { font-family: var(--fh); font-size: 1.85rem; font-weight: 700; color: var(--gold); display: block; }
.stat-l { font-size: 0.68rem; color: rgba(255,255,255,0.36); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* PAGE HEADER (inner pages) */
.ph { background: #080808; padding: 130px 0 65px; position: relative; overflow: hidden; }
.ph::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(to bottom, #000 33.33%, #CC0000 33.33%, #CC0000 66.66%, #FFCE00 66.66%); }
.ph h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.01em; }
.ph p  { color: rgba(255,255,255,0.48); font-size: 0.98rem; margin-top: 0.7rem; max-width: 520px; line-height: 1.72; }
.breadcrumb { display: flex; gap: 0.45rem; align-items: center; margin-bottom: 0.9rem; font-size: 0.78rem; color: rgba(255,255,255,0.3); font-family: var(--fb); }
.breadcrumb a { color: var(--gold); }

/* CARDS */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 1.9rem; transition: all 0.25s; box-shadow: var(--sh1); }
.card:hover { box-shadow: var(--sh2); transform: translateY(-4px); border-color: rgba(200,150,62,0.5); }
.card-icon { font-size: 2.1rem; margin-bottom: 0.9rem; display: block; }
.card h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.card p  { font-size: 0.86rem; color: var(--gray); line-height: 1.7; }
.card-arrow { display: inline-flex; align-items: center; gap: 5px; margin-top: 0.9rem; color: var(--gold); font-weight: 700; font-size: 0.82rem; transition: gap 0.2s; }
.card-arrow:hover { gap: 10px; }

/* DARK CARD */
.dcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--rad); padding: 1.9rem; transition: border-color 0.25s; }
.dcard:hover { border-color: rgba(200,150,62,0.45); }
.dcard h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.dcard p  { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.68; }
.dcard-icon { font-size: 2rem; margin-bottom: 0.9rem; display: block; }

/* GRIDS */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.ga { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.4rem; }

/* CHECKLIST */
.cl li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.62; }
.cl li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.cl-dark li { color: rgba(255,255,255,0.7); }

/* TIMELINE */
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(200,150,62,0.1)); }
.tl-step { display: flex; gap: 1.6rem; margin-bottom: 2.3rem; position: relative; }
.tl-n { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; font-size: 1.08rem; flex-shrink: 0; z-index: 1; }
.tl-body { padding-top: 8px; }
.tl-body h3 { font-size: 1.02rem; margin-bottom: 0.38rem; }
.tl-body p  { font-size: 0.86rem; color: var(--gray); line-height: 1.65; }

/* INFOBOX */
.ibox { background: var(--golddim); border: 1px solid rgba(200,150,62,0.28); border-radius: var(--rad); padding: 1.3rem 1.5rem; }
.ibox.warn { background: rgba(178,34,34,0.07); border-color: rgba(178,34,34,0.22); }
.ibox h4 { font-size: 0.93rem; margin-bottom: 0.4rem; }
.ibox p  { font-size: 0.85rem; color: var(--gray); line-height: 1.65; }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.tag  { background: var(--cream); padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }
.tag-g { background: var(--golddim); color: var(--gold); }
.tag-r { background: rgba(178,34,34,0.09); color: #B22222; }

/* TABLE */
.tbl-wrap { overflow-x: auto; border-radius: var(--rad); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--black); color: #fff; padding: 0.88rem 1.15rem; text-align: left; font-size: 0.82rem; font-weight: 600; font-family: var(--fb); white-space: nowrap; }
td { padding: 0.82rem 1.15rem; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #faf8f5; }
.yes { color: #16a34a; font-weight: 700; }
.no  { color: #dc2626; font-weight: 700; }

/* FORMS */
.fg { margin-bottom: 1.15rem; }
.fg label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 0.38rem; color: var(--black); }
.fg input, .fg select, .fg textarea { width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--border); border-radius: var(--rad2); font-size: 0.91rem; background: #fff; color: var(--black); transition: border-color 0.2s; outline: none; font-family: var(--fb); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); }
.fg textarea { resize: vertical; min-height: 108px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* TABS */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.8rem; overflow-x: auto; }
.tab-btn { padding: 0.82rem 1.35rem; font-size: 0.86rem; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; transition: all 0.2s; font-family: var(--fb); }
.tab-btn.on { color: var(--black); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.on { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.4rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--fh); font-weight: 700; font-size: 0.96rem; color: var(--black); transition: color 0.2s; }
.faq-q:hover { color: var(--gold); }
.faq-plus { font-size: 1.25rem; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; line-height: 1; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; font-size: 0.88rem; color: var(--gray); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.15rem; }
.faq-item.open .faq-plus { transform: rotate(45deg); }

/* FOOTER */
footer { background: #060606; padding: 65px 0 0; color: rgba(255,255,255,0.38); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.foot-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 260px; margin-top: 0.9rem; }
.foot-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.soc { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; transition: all 0.2s; color: rgba(255,255,255,0.45); }
.soc:hover { background: var(--gold); color: #000; }
.foot-col h4 { color: #fff; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--fb); }
.foot-col a { color: rgba(255,255,255,0.38); font-size: 0.84rem; transition: color 0.2s; display: block; margin-bottom: 0.48rem; }
.foot-col a:hover { color: var(--gold); }
.foot-bar { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 0.8rem; }
.de-flag { display: flex; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; }
.de-flag div { flex: 1; }
.de-b { background: #000; } .de-r { background: #CC0000; } .de-y { background: #FFCE00; }

/* FLOATS */
.wa-btn { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 999; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 18px rgba(37,211,102,0.4); transition: transform 0.2s; }
.wa-btn:hover { transform: scale(1.1); }
#totop { position: fixed; bottom: 1.6rem; right: 5.2rem; z-index: 998; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #000; border: none; cursor: pointer; font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(200,150,62,0.38); opacity: 0; transform: translateY(8px); transition: all 0.3s; }
#totop.show { opacity: 1; transform: translateY(0); }

/* PROCESS STEPS (homepage) */
.steps { display: grid; grid-template-columns: repeat(6,1fr); }
.step { padding: 2rem 1.2rem; text-align: center; background: #fff; border: 1px solid var(--border); position: relative; }
.step + .step { border-left: none; }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--black); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; font-size: 1.15rem; margin: 0 auto 0.9rem; }
.step h4 { font-size: 0.84rem; margin-bottom: 0.32rem; font-family: var(--fb); font-weight: 700; }
.step p  { font-size: 0.75rem; color: var(--gray); line-height: 1.55; }
.step:not(:last-child)::after { content: '›'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--gold); z-index: 1; background: #fff; padding: 0 3px; }

/* TESTIMONIALS */
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--rad); padding: 1.9rem; box-shadow: var(--sh1); }
.stars { color: var(--gold); font-size: 0.82rem; margin-bottom: 0.7rem; letter-spacing: 2px; }
.tcard q { display: block; font-size: 0.88rem; color: var(--gray); line-height: 1.75; font-style: italic; margin-bottom: 1.2rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.tauth { display: flex; align-items: center; gap: 0.7rem; }
.tav { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; color: #000; font-size: 0.95rem; flex-shrink: 0; }
.tauth strong { display: block; font-size: 0.87rem; }
.tauth span   { font-size: 0.76rem; color: var(--gray); }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, #0c0c0c, #1a1200); padding: 80px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.7rem); margin-bottom: 0.9rem; }
.cta-band p  { color: rgba(255,255,255,0.48); max-width: 460px; margin: 0 auto 1.9rem; font-size: 0.97rem; line-height: 1.72; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.58s ease, transform 0.58s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(6,6,6,0.99); padding: 1.6rem 5%;
    overflow-y: auto; gap: 0.1rem; z-index: 999;
  }
  .nav-links.open .drop { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,0.04); box-shadow: none; margin: 0.15rem 0 0.15rem 1rem; border: none; }
  .hb { display: flex; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .fg-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none !important; }
  .step + .step { border-left: 1px solid var(--border); border-top: none; }
}
@media (max-width: 600px) {
  .hero-body h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
