/* ===============================================================
   Solarith Stream Akademie – style.css
   Elegant Classic Theme: Timeless serif typography, muted palette,
   elegant spacing, and refined flexbox-based layouts only
   =================================================================
*/
/* 1. CSS Reset & Normalize */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #FAFAF7;
  color: #262626;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A225D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #c0981a;
  outline: none;
}

/* 2. Brand Fonts (with elegant fallback) */
:root {
  --brand-primary: #1A225D;
  --brand-secondary: #F4C542;
  --brand-accent: #FFFFFF;
  --color-muted: #E6E2DC;
  --color-light: #FAFAF7;
  --color-card-bg: #FFFFFF;
  --color-border: #D1C9BA;
  --color-btn-hover: #E8B900;
  --shadow-card: 0 4px 18px 2px rgba(52,47,29,0.05);
  --font-serif: 'Georgia', 'Times New Roman', Times, serif;
  --font-sans: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: #1A225D;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: #353535;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

/* ===============================
   3. Elegant Classic Spacing/Layout Classes
   =============================== */
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  margin-bottom: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  min-width: 0;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  max-width: 530px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffdfa;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 7px 0 rgba(60,51,10,0.04);
  padding: 20px 18px 26px 18px;
  min-width: 240px;
  flex: 1 1 260px;
}

/* =========== HEADER/NAV ============ */
header {
  background: var(--brand-accent);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 1120px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--brand-primary);
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f4f0e3;
  color: #977f12;
}
.cta-button {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  background: var(--brand-secondary);
  color: #1A225D;
  padding: 13px 30px;
  border-radius: 28px;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(60,51,10,0.04);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  margin-left: 14px;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-btn-hover);
  color: #171a25;
  box-shadow: 0 4px 18px 1px rgba(44,36,10,0.06);
}

/* ========== Mobile Navigation ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--brand-primary);
  cursor: pointer;
  margin-left: 8px;
  z-index: 110;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #977f12;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffefa;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.57,-0.08,.41,1.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 16px;
  box-shadow: 2px 0 38px 6px rgba(40,38,9,0.11);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.35rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  margin-bottom: 24px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--brand-primary);
  padding: 12px 0 12px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f8efd7;
  color: #F4C542;
}
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 640px) {
  header .container {
    padding: 0 10px;
  }
  .cta-button {
    padding: 11px 18px;
    font-size: 0.98rem;
    margin-left: 5px;
  }
}

/* ================================ */
/* HERO, FEATURES, CONTENT GRIDS */
/* ================================ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: stretch;
}
.feature-item img {
  width: 38px;
  height: 38px;
}

.content-wrapper > h1, .content-wrapper > h2 {
  margin-bottom: 20px;
}
.content-wrapper > p {
  margin-bottom: 22px;
}

/* ================================ */
/* TESTIMONIAL SECTION */
/* ================================ */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.rating-stars {
  font-size: 1.16rem;
  letter-spacing: 2px;
  color: #F4C542;
  margin-bottom: 6px;
  font-family: var(--font-serif);
}
.testimonial-author {
  font-size: 1.0rem;
  color: #242226;
  font-family: var(--font-serif);
  font-style: italic;
  margin-top: 2px;
}
.testimonial-card p {
  color: #22222a;
  font-family: var(--font-serif);
  font-size: 1.03rem;
}

/* Contrast - For readability inside testimonials */
.testimonial-card {
  background: #fffdfa;
  color: #191919;
}

/* ================================ */
/* FOOTER */
/* ================================ */
footer {
  background: #f6f3ef;
  border-top: 1px solid var(--color-border);
  padding: 0;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  padding: 38px 20px 20px 20px;
  max-width: 1120px;
}
.footer-logo img {
  height: 38px;
  width: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #54565a;
  font-size: 0.97rem;
  font-family: var(--font-serif);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #f3e5b2;
  color: #1A225D;
}
.footer-info {
  color: #787670;
  font-size: 0.99rem;
  margin-top: 8px;
  font-family: var(--font-serif);
}

/* ================================ */
/* COOKIES BANNER & CONSENT MODAL */
/* ================================ */
#cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 6000;
  background: #fffdfa;
  border-top: 1px solid #edd161;
  box-shadow: 0 -6px 28px -8px #1a225d16;
  display: flex;
  justify-content: center;
  padding: 24px 20px 28px 20px;
  gap: 26px;
  align-items: center;
  animation: fadeInUp 0.5s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px);} 
  to   { opacity: 1; transform: none;}
}
#cookie-consent-banner .cookie-banner-text {
  font-family: var(--font-serif);
  color: #312e2a;
  margin-right: 24px;
  font-size: 1.04rem;
}
#cookie-consent-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  background: var(--brand-secondary);
  color: #1a225d;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-btn-hover);
  color: #171a25;
}
.cookie-btn.reject {
  background: #fff6df;
  color: #655700;
  border: 1px solid #e5ca7a;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fde28a;
  color: #201d12;
}
.cookie-btn.settings {
  background: #1A225D;
  color: #fff;
  border: 1px solid #2f3466;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #13183c;
}

#cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  z-index: 7000;
  width: 98%;
  max-width: 410px;
  background: #fffdfa;
  border-radius: 26px;
  box-shadow: 0 16px 64px 3px #866d0c25;
  border: 1.5px solid #F4C542;
  padding: 30px 32px 32px 32px;
  display: none;
  animation: cookiesPopup 0.38s;
}
#cookie-modal.active {
  display: block;
}
@keyframes cookiesPopup {
  from { opacity: 0; transform: translate(-50%,-43%) scale(0.92);} 
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1);}
}
#cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}
#cookie-modal label {
  font-family: var(--font-serif);
  font-size: 1.09rem;
  color: #34312B;
  font-weight: 500;
  margin-left: 9px;
}
#cookie-modal ul {
  margin-bottom: 18px;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
#cookie-modal li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
#cookie-modal input[type='checkbox'] {
  accent-color: var(--brand-secondary);
}
#cookie-modal .cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.5rem;
  border: none;
  background: none;
  color: #655700;
  cursor: pointer;
}

/* ================================ */
/* BUTTONS, LINKS, FORM UI */
/* ================================ */
button, input[type="submit"], input[type="button"] {
  font-family: var(--font-serif);
  font-size: 1.01rem;
  border-radius: 22px;
  border: none;
  outline: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, input[type="button"]:focus {
  background: var(--color-btn-hover);
  color: #25262b;
}

/* ========= LISTS ETC. ========= */
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0.5em;
}
ul li::marker {
  color: var(--brand-secondary);
  font-size: 1.15em;
}

/* ========= FORM =============  */
input, textarea, select {
  font-family: var(--font-serif);
  border: 1.5px solid #ded7ca;
  border-radius: 10px;
  font-size: 1rem;
  padding: 11px 12px;
  background: #fffdfa;
  color: #222226;
  margin-bottom: 12px;
  transition: border-color 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  outline: none;
}
label {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: #293055;
  margin-bottom: 4px;
  display: inline-block;
}

/* =========== CARD & GRID STYLES ========= */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* =========== ANIMATIONS & EFFECTS ===========  */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 8px 26px 5px rgba(60,51,10,0.07);
  transform: translateY(-4px) scale(1.01);
}
.cta-button:active {
  transform: scale(0.97);
}

/* ============= RESPONSIVE ================= */
@media (max-width: 900px) {
  .container, footer .container {
    max-width: 99vw;
  }
  .feature-grid, .testimonial-slider, .card-grid {
    gap: 16px;
  }
}
@media (max-width: 786px) {
  section, .section {
    padding: 32px 8px;
    margin-bottom: 35px;
  }
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .feature-item, .card {
    padding: 16px 10px;
  }
  .feature-grid, .testimonial-slider, .card-grid {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .container, footer .container {
    padding: 0 8px;
  }
  .feature-grid, .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card, .feature-item, .card {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-logo img {
    height: 30px;
    margin-bottom: 8px;
  }
  .footer-info {
    font-size: 0.92rem;
  }
}

/* === Hide Desktop Nav & Show Mobile on Narrow === */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 586px) {
  #cookie-consent-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 6px 18px 9px;
    align-items: flex-start;
  }
  #cookie-consent-banner .cookie-banner-text {
    margin-right: 0;
    font-size: 0.97rem;
  }
}

/* =============== MINOR MICRO-INTERACTION SHADOWS ==============  */
.card:active, .testimonial-card:active, .feature-item:active {
  box-shadow: 0 2px 10px 1px rgba(54,41,33,0.06);
  transform: scale(0.995);
}

/* =========== TABLES (for legal pages) ============= */
table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-collapse: collapse;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}
th, td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
  color: #31303a;
}
th {
  background: #f8efd7;
  color: var(--brand-primary);
}

/* ========== Misc ==========
   For spacing between top-level sections/cards
*/
section + section, .section + .section {
  margin-top: 28px;
}

.card-container > *, .card-grid > *, .testimonial-slider > *, .feature-grid > * {
  margin-bottom: 0 !important;
}

/* ========== Accessibility ========== */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #915d09;
  outline-offset: 2px;
}

/* Scrollbar minimal styling for elegance */
body::-webkit-scrollbar {
  width: 9px;
  background: #f3edda;
}
body::-webkit-scrollbar-thumb {
  background: #F4C542;
  border-radius: 9px;
}

/* ============= Hide elements utility (for JS) ============= */
.hidden { display: none !important; }

/* ============= VISUAL HIERARCHY - SPACING SCALE ============= */
.mt-24 { margin-top: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-24 { gap: 24px !important; }

/* ========== Z-INDEX LAYERING =========== */
header, .mobile-menu, #cookie-consent-banner, #cookie-modal {
  z-index: 800 !important;
}

/* === END OF STYLE.CSS === */
