/* ================================
   BASIS & RESET
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  background: #f4f6f8;
  color: #172150;
}

.main-logo {
  max-width:800px;
  margin:0px auto;
  padding: 0px 30px;
}


/* ================================
   CSS-VARIABLEN
================================ */
:root {
  --primary: #7CC5E6;
  --primary-dark: #172150;
  --secondary: #f3f4f6;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --border-light: #e5e7eb;
  --shadow-soft: 0 8px 25px rgba(23,33,80,0.05);
  --radius: 12px;
  --font-base: 15px;
  --font-large: 36px;
  --gap: 20px;
}

/* ================================
   CONTAINER
================================ */
.container {
  width: min(900px, 95%);
  margin: 60px auto;
  background: #fff;
  padding: clamp(25px, 4vw, 45px);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(23,33,80,0.08);
}

/* ================================
   TYPOGRAFIE
================================ */
h1 {
  text-align: center;
  font-size: var(--font-large);
  margin-bottom: 10px;
  font-weight: 700;
}

h2 {
  margin-top: 60px;
  font-size: 24px;
}

p, ul, li {
  font-size: var(--font-base);
  line-height: 1.7;
  color: #172150;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}

/* ================================
   TRUST BAR
================================ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  font-size: 14px;
  margin-bottom: 40px;
}

/* ================================
   MENU
================================ */
.menu {
  background: var(--primary);
  padding: 15px;
  text-align: center;
}

.menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.menu a:hover {
  text-decoration: underline;
}

/* ================================
   FORMULARE & INPUTS
================================ */
label {
  font-weight: 600;
  display: block;
  margin-top: 10px;
  position: relative;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  font-size: var(--font-base);
  background: var(--bg-light);
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,197,230,0.25);
  background: #fff;
}

/* ================================
   Kontaktformular
================================ */

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.checkbox-row label {
  display: inline;
  font-weight: normal;
  margin: 0;
}

.form-message:empty{
display:none;
}

.form-message {
margin:20px 0;
padding:12px 16px;
border-radius:8px;
font-weight:600;
}

.form-error {
background:#ffe5e5;
color:#b00020;
}

.form-success {
background:#e8f7ec;
color:#137333;
}

/* ================================
   INFO-ICON
================================ */
.info-icon {
  display: inline-block;
  margin-left: 5px;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  color: white;
  text-align: center;
  font-size: 10px;
  border-radius: 50%;
  line-height: 14px;
  cursor: pointer;
  position: relative;
}

.info-icon span {
  visibility: hidden;
  width: 200px;
  background: #000;
  color: #fff;
  text-align: left;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  z-index: 10;
  top: -5px;
  left: 20px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.info-icon:hover span {
  visibility: visible;
  opacity: 0.9;
}

/* ================================
   BUTTONS
================================ */
.button-group {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  padding: 12px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

button.primary {
  background: var(--primary);
  color: white;
}

button.primary:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: var(--secondary);
  color: var(--primary-dark);
}

button.secondary:hover {
  background: #e5e7eb;
}

/* ================================
   ERGEBNIS-KARTEN
================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  margin-top: 40px;
}

.card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card.highlight {
  background: linear-gradient(135deg, var(--primary), #5bb6de);
  color: white;
}

.card.highlight strong {
  color: rgba(255,255,255,0.8);
}

.card .tooltip {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 12px;
  background: #000;
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card:hover .tooltip {
  opacity: 0.8;
}

.card-value {
  font-size: 22px;
  font-weight: 700;
}

/* ================================
   CTA-BOX
================================ */
.cta-box {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(23,33,80,0.05);
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  background: var(--primary);
  color: white;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
}

/* ================================
   FEHLER- & HINWEISE
================================ */
.error {
  color: #dc2626;
  font-weight: bold;
  margin-top: 10px;
}

/* ================================
   DISCLAIMER
================================ */

.disclaimer-box {
  background-color: #f9f9f9;
  border-left: 4px solid #1565c0;
  padding: 12px 15px;
  margin-top: 20px;
  font-size: 10pt;
  line-height: 1.5;
  border-radius: 4px;
  color: #333;
}

/* ================================
   TABLES
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14px;
}

th {
  background: #f3f4f6;
  padding: 10px;
  font-weight: 600;
}

td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
}

#table_cookies {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 12px;
  border: 1px solid #f0f0f0;
}

#table_cookies td, #table_cookies th {
  border: 1px solid #f0f0f0;
  text-align:left;  
}


/* ================================
   FAQ
================================ */
.faq-section {
  margin-top: 50px;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #1773AD;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid #172150;
  margin-bottom: 8px;
}

.faq-answer.open {
  padding: 10px 16px;
  max-height: 500px;
}

.arrow {
  transition: transform 0.3s;
}

.arrow.open {
  transform: rotate(90deg);
}

/* ================================
   COOKIES
================================ */
#cc-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(4px);
  z-index:9998;
  display:none;
}

#cc-modal{
  position:fixed;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  width:95%;
  max-width:580px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
  padding:28px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  z-index:9999;
  display:none;
  max-height:90vh;
  overflow-y:auto;
}

#cc-modal h3{
  margin:0 0 12px 0;
  font-size:18px;
}

#cc-modal p{
  font-size:14px;
  color:#555;
  line-height:1.5;
}

.cc-buttons{
  margin-top:20px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.cc-btn{
  flex:1;
  padding:12px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}

.cc-primary{
  background:#2563eb;
  color:#fff;
}

.cc-secondary{
  background:#e2e8f0;
}

.cc-settings{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid #eee;
  display:none;
}

.cc-option{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  align-items:start;
  margin-bottom:18px;
}

.cc-option input{
  width:18px;
  height:18px;
  margin-top:4px;
}

.cc-details summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
}

.cc-details summary::-webkit-details-marker{
  display:none;
}

.cc-details summary::after{
  content:"+";
  float:right;
}

.cc-details[open] summary::after{
  content:"−";
}

.cc-description{
  font-size:12px;
  color:#666;
  margin-top:6px;
  line-height:1.4;
}

.cc-smaller{
  font-size:10px;
  color:#666;
}

#cc-manage{ 
  position:fixed; 
  bottom:5px; /* ganz unten */ 
  right:10px; /* rechts im Footer */ 
  background:transparent; 
  color:#FFFFFF; /* dezente Farbe */ 
  font-size:11px; 
  padding:2px 6px; 
  border-radius:4px; 
  cursor:pointer; 
  display:none; 
  z-index:9997; 
  opacity:0.6; 
  transition:all .2s ease; 
  box-shadow:none;
  display: block;  
} 
#cc-manage:hover{ 
  opacity:1; 
  color:#000; 
  transform:none; 
}

@media(max-width:480px){
  #cc-modal{
    bottom:0;
    border-radius:16px 16px 0 0;
  }
  .cc-option{
    grid-template-columns:1fr;
  }
}

/* ================================
   RESULTS & CHARTS
================================ */
.results-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

canvas {
  margin-top: 40px;
  max-width: 100%;
  background: white;
  padding: 20px;
  border-radius: 12px;
}

/* ================================
   UTILITY CLASSES
================================ */
.hidden {
  display: none !important;
}

/* ================================
   SEO CONTENT
================================ */
.seo-content {
  margin-top: 60px;
  font-size: 15px;
  line-height: 1.7;
}

.authority-box {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 100;
  opacity: 0.9;
}

/* ================================
   FOOTER
================================ */
.footer,
.footer p,
.footer a,
.footer .authority-box,
.footer .authority-box p,
.footer .authority-box h4 {
  color: #fff;
  font-size: 12px;  /* Fließtext */
  line-height: 1.2;
}

.footer .authority-box h4 {
  font-size: 13px;  /* Überschrift leicht größer */
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-menu,
.footer .footer-menu a {
  font-size: 16px;
  line-height: 1.5;
}

.footer {
  background: #333;
  color: #fff !important;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  color: #fff;	
  text-decoration: underline;
}

/* ================================
   RESPONSIVE
================================ */
@media(max-width: 768px) {
  .container {
    margin: 20px;
    padding: 25px;
  }

  h1 {
    font-size: 26px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

/* ================================
   PRINT
================================ */
@media print {
  * {
    box-shadow: none !important;
  }

  body {
    background: white;
  }

  button,
  select,
  input,
  label,
  #errorBox,
  .info-icon {
    display: none !important;
  }
}