/* =============================================
   RDDWeb — Global Stylesheet
   Domain: rddweb.de
   ============================================= */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1A1A2E;
  background: #FFFFFF;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #2C5F8A; text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

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

.section-pad--sm {
  padding: 3rem 0;
}

.bg-light { background: #F5F7FA; }
.bg-dark { background: #1A1A2E; color: #FFFFFF; }
.bg-accent { background: #2C5F8A; color: #FFFFFF; }

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: #2C5F8A;
  color: #fff;
}
.btn--primary:hover { background: #245075; }

.btn--secondary {
  background: transparent;
  color: #2C5F8A;
  border-color: #2C5F8A;
}
.btn--secondary:hover { background: #2C5F8A; color: #fff; }

.btn--cta {
  background: #4CAF50;
  color: #fff;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
}
.btn--cta:hover { background: #43A047; }

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

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E8ECF0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: #2C5F8A; }

.logo span { color: #2C5F8A; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
}
.nav-links a:hover { color: #2C5F8A; text-decoration: none; }
.nav-links a.active { color: #2C5F8A; }

.nav-cta {
  background: #2C5F8A;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-weight: 600 !important;
  white-space: nowrap;
}
.nav-cta:hover { background: #245075 !important; }

/* Mobile nav toggle */
.nav-toggle-checkbox { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 4px;
  color: #1A1A2E;
}

@media (max-width: 768px) {
  .nav-toggle-label { display: flex; align-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E8ECF0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #F0F2F5;
  }
  .nav-links a.nav-cta {
    margin: 0.75rem 1.25rem;
    border-radius: 5px;
    text-align: center;
    border-bottom: none;
  }

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

/* --- Footer --- */
footer {
  background: #1A1A2E;
  color: #C5CDD6;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: #fff; font-size: 1.4rem; margin-bottom: 0.8rem; display: block; }
.footer-brand p { font-size: 0.9rem; color: #9BA8B5; line-height: 1.6; }

.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 1rem; }

.footer-col nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col nav a { color: #9BA8B5; font-size: 0.9rem; }
.footer-col nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #6C7A89;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: #6C7A89; }
.footer-bottom a:hover { color: #C5CDD6; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.85rem;
  color: #6C7A89;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: #6C7A89; }
.breadcrumb a:hover { color: #2C5F8A; }
.breadcrumb-sep { color: #C5CDD6; }

/* --- Tables --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

thead th {
  background: #1A1A2E;
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #E8ECF0;
  vertical-align: middle;
}

tbody tr:nth-child(even) { background: #F5F7FA; }
tbody tr:hover { background: #EEF2F7; }

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid #E8ECF0;
}

.faq-item:first-child { border-top: 1px solid #E8ECF0; }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1A1A2E;
  list-style: none;
  gap: 1rem;
}

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

.faq-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: #2C5F8A;
}

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

.faq-answer {
  padding: 0 0 1.1rem;
  color: #555;
  font-size: 0.975rem;
  line-height: 1.7;
}

/* --- Check list --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.975rem;
}

.check-list .icon { color: #4CAF50; margin-top: 2px; flex-shrink: 0; }

/* --- Image placeholder --- */
.img-placeholder {
min-width:30%;
}
.img-placeholder svg { opacity: 0.5; }
