/* ===============================
   CSS RESET and 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,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #27304D;
  background-color: #FAFBFC;
  min-height: 100vh;
}

/* ========== BRAND COLORS AS CSS VARIABLES ============= */
:root {
  --primary: #27304D;
  --secondary: #F2B134;
  --accent: #E5E8ED;
  --text: #27304D;
  --bg-light: #FAFBFC;
  --bg-card: #fff;
  --border: #D5D8DD;
  --shadow: 0 2px 12px 0 rgba(39,48,77,0.09);
}

/* ========== TYPOGRAPHY =========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
}
p, ul, ol, address {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--secondary);
}

/* ============ GLOBAL CONTAINERS & SECTIONS =========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ========== HEADER + NAVIGATION =========== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 4px 14px -8px rgba(39,48,77,0.07);
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img[alt="Hidden Forge Akademie"] {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus { color: var(--secondary); }
.main-nav .cta-primary {
  background: var(--secondary);
  color: #fff;
  padding: 8px 22px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-left: 16px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px 0 rgba(242,177,52,0.08);
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #d9a32a;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(242,177,52,0.15);
}

/* ============= MOBILE NAVIGATION ============== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 24px;
  z-index: 1005;
  line-height: 1;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(39,48,77,0.97);
  box-shadow: 0 8px 32px rgba(39,48,77,0.14);
  z-index: 1004;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 10vw;
  padding-left: 0;
  transition: transform 0.3s cubic-bezier(.69,.17,.22,1.05), opacity 0.2s;
  transform: translateX(-100vw);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1006;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-left: 40px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0;
  margin-right: 20px;
  transition: color 0.13s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(242,177,52,0.08);
  border-radius: 4px;
}

/* HIDE PC MENU ON MOBILE */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ============= MAIN CONTENT LAYOUTS ============= */
/* --- Section spacing patterns --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 28px 22px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 18px 0 rgba(39,48,77,0.07);
  margin-bottom: 20px;
  max-width: 540px;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-card strong {
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* Feature grid reuse for cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 8px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.23s, border-color 0.18s, transform 0.22s;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.feature h3 {
  margin-top: 4px;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature p {
  margin-bottom: 0;
  color: var(--text);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 36px 4px rgba(39,48,77,0.11);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.023);
}

/* Content-wrapper alignment fix for centers */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Cards and Testimonials on small screens */
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* ====== BLOG & LISTING ======= */
ul li span {
  background: var(--accent);
  color: var(--primary);
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 16px;
  margin-left: 8px;
  display: inline-block;
}

/* =========== CTA BUTTONS ============= */
.cta-primary {
  background: var(--secondary);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 33px;
  font-size: 18px;
  margin-top: 14px;
  box-shadow: 0 2px 14px 0 rgba(242,177,52,0.18);
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.16s, transform 0.13s;
  display: inline-block;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #d9a32a;
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 4px 24px 0 rgba(242,177,52,0.25);
  color: #fff;
}

/* ========== FOCUS ============ */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  z-index: 10;
  position: relative;
}

/* ======= FOOTER ========== */
footer {
  background: #f6f7fa;
  border-top: 1px solid var(--accent);
  padding: 0 0 16px 0;
  width: 100%;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 38px 16px 8px 16px;
  gap: 36px;
}
footer img[alt="Hidden Forge Akademie"] {
  height: 32px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 15px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--secondary);
}
footer address {
  font-style: normal;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 0;
}
footer address a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
footer address a:hover {
  color: var(--secondary);
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 12px 8px 12px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8px;
  }
}

/* =========== FAQ ACCORDION (Hilfe & FAQ) ========== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 30px 0 8px 0;
}
.faq-accordion > div {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 20px 18px;
  box-shadow: 0 2px 8px rgba(39,48,77,0.09);
  cursor: pointer;
  transition: box-shadow 0.16s;
}
.faq-accordion > div:hover {
  box-shadow: 0 8px 28px rgba(39,48,77,0.17);
}
.faq-accordion strong {
  font-size: 17px;
  display: block;
  margin-bottom: 8px;
}

/* ====== ADDRESS ICONS ====== */
address img {
  height: 19px;
  width: 19px;
  vertical-align: sub;
  margin-right: 8px;
  margin-bottom: 2px;
}

/* ============ UTILITIES ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }

/* ============ RESPONSIVE ================== */
@media (max-width: 991px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 30px 6px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 24px; }
  h2, .h2 { font-size: 20px; }
  h3, .h3 { font-size: 16px; }
  .feature, .card {
    min-width: 0;
    max-width: 100%;
    padding: 15px 10px 13px 15px;
  }
  section {
    margin-bottom: 32px;
    padding: 22px 5px 16px 5px;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 18px 0 rgba(39,48,77,0.15);
  border-top: 2px solid var(--accent);
  padding: 24px 12px 16px 12px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: transform 0.18s cubic-bezier(.77,.01,.41,.94), opacity 0.16s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-text {
  font-size: 16px;
  flex: 1 1 130px;
}
.cookie-consent-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #d9a32a;
}
.cookie-btn.reject {
  background: #e5e8ed;
  color: var(--primary);
}
.cookie-btn:focus {
  outline: 2px solid var(--secondary);
}
.cookie-btn.settings {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 12px 8px;
    gap: 14px;
  }
  .cookie-consent-actions {
    gap: 10px;
  }
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(39,48,77,0.45);
  z-index: 1510;
  justify-content: center;
  align-items: center;
  transition: opacity 0.22s;
}
.cookie-modal.show {
  display: flex;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 10px;
  max-width: 430px;
  width: 94vw;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 8px 44px 2px rgba(39,48,77,0.23);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideInBottom .23s cubic-bezier(0.5,0.97,0.56,1.2);
}
@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1512;
}
.cookie-modal-title {
  font-size: 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-section label {
  font-size: 15px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--accent);
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
  border: 1px solid var(--accent);
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(39,48,77,0.08);
  transition: transform 0.21s cubic-bezier(.89,.02,.36,.95);
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 540px) {
  .cookie-modal-dialog {
    padding: 19px 7px 18px 9px;
    min-width: 0;
    width: 98vw;
  }
}

/* ===== Scrollbar styling for webkit ===== */
*::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
  background: #b5bed6;
  border-radius: 10px;
}

/* ========= HELPER CLASSES ========== */
.visually-hidden {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

/* ============= THANK YOU AND CENTERED STYLES =========== */
section .content-wrapper[style*="text-align:center"] {
  align-items: center;
  justify-content: center;
}
section .content-wrapper[style*="text-align:center"] h1,
section .content-wrapper[style*="text-align:center"] p {
  text-align: center;
}

/* ========== TRANSITIONS ========== */
.card, .feature, .testimonial-card, .cta-primary, .faq-accordion > div {
  transition-property: box-shadow, border-color, transform, background, color;
  transition-duration: 0.19s;
  transition-timing-function: cubic-bezier(0.56,0.16,0.49,1.07);
}

/* ======== PRINT FRIENDLY ========== */
@media print {
  header, .main-nav, .footer-nav, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body, .container, section { background: #fff !important; color: #000 !important; }
}

