/* ============================================================
   OG Hildesheimer Börde — Global Styles
   Design: dieraumpiraten.de inspired
   Colors: #0a0a0a (bg), #f5f5f5 (text), #fd2504 (accent)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p { font-size: 1rem; line-height: 1.75; color: #d0d0d0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: #fd2504; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff4422; }

strong { color: #ffffff; font-weight: 700; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; color: #d0d0d0; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { position: relative; }

/* --- Accent / Color Utilities --- */
.text-red { color: #fd2504; }
.text-white { color: #ffffff; }
.text-muted { color: #888; }
.bg-black { background-color: #0a0a0a; }
.bg-dark { background-color: #111111; }
.bg-dark-2 { background-color: #161616; }
.bg-red { background-color: #fd2504; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #fd2504;
  color: #ffffff;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover { background: #e02000; color: #ffffff; }

.btn-outline {
  background: transparent;
  color: #fd2504;
  border: 2px solid #fd2504;
}
.btn-outline:hover { background: #fd2504; color: #ffffff; }

.btn-white {
  background: #ffffff;
  color: #0a0a0a;
}
.btn-white:hover { background: #f0f0f0; color: #0a0a0a; }

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- SVG Icon Base --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- Dotted / Dashed Borders --- */
.border-dotted { border: 2px dotted rgba(253, 37, 4, 0.5); }
.border-dashed { border: 2px dashed rgba(253, 37, 4, 0.4); }
.border-dashed-white { border: 2px dashed rgba(255,255,255,0.15); }

/* --- Rough Section Divider (SVG) --- */
.divider-rough {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.divider-rough svg {
  display: block;
  width: 100%;
}

/* --- Section Padding --- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fd2504;
  margin-bottom: 1rem;
  border-left: 3px solid #fd2504;
  padding-left: 0.6rem;
}

/* --- Cards --- */
.card {
  background: #111111;
  border: 2px dashed rgba(253, 37, 4, 0.35);
  padding: 2rem;
  position: relative;
}

.card--solid {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: #fd2504;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin: 0;
}

/* --- Grid Utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* --- Quote Block --- */
.quote-block {
  border-left: 4px solid #fd2504;
  border-top: 1px dashed rgba(253, 37, 4, 0.3);
  border-bottom: 1px dashed rgba(253, 37, 4, 0.3);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(253, 37, 4, 0.04);
}

.quote-block p {
  font-size: 1.15rem;
  font-style: italic;
  color: #ffffff;
  margin: 0;
}

/* --- Steps (Numbered) --- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fd2504;
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.step__content h4 {
  color: #ffffff;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.step__content p {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

/* --- Check List --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: #d0d0d0;
  font-size: 0.95rem;
}
.check-list li .icon { color: #fd2504; margin-top: 2px; }

/* --- FAQ (Details/Summary) --- */
.faq-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item details {
  border: 1px dashed rgba(253, 37, 4, 0.3);
  background: #111;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-icon {
  color: #fd2504;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item details[open] summary .faq-icon { transform: rotate(45deg); }

.faq-item details[open] summary {
  border-bottom: 1px dashed rgba(253, 37, 4, 0.3);
  color: #fd2504;
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.8;
}

/* --- Table --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: #fd2504;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #ccc;
  vertical-align: middle;
}

tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

td .icon-check { color: #fd2504; }
td .icon-cross { color: #555; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed rgba(253, 37, 4, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo span { color: #fd2504; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #cccccc;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fd2504; }
.nav-links .nav-cta { color: #fd2504; border: 1px solid #fd2504; padding: 0.4rem 1rem; }
.nav-links .nav-cta:hover { background: #fd2504; color: #fff; }

/* Mobile nav toggle */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: #f5f5f5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050505;
  border-top: 1px dashed rgba(253, 37, 4, 0.2);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fd2504;
  margin-bottom: 1rem;
}

.footer-col nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col nav a {
  display: block;
  font-size: 0.875rem;
  color: #777;
  padding: 0.3rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col nav a:hover { color: #fd2504; }

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #444;
  margin: 0;
}

.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #fd2504; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-toggle-label { display: flex; align-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 2rem;
    gap: 0.25rem;
    border-bottom: 1px dashed rgba(253, 37, 4, 0.3);
    z-index: 99;
  }

  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }

  .nav-links a { padding: 0.75rem 0; font-size: 1rem; }
  .nav-links .nav-cta { border: none; padding: 0.75rem 0; }

  .site-nav { position: relative; }

  .section-pad { padding: 3.5rem 0; }

  .btn-lg { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
