/* =========================
   1. Grundeinstellungen
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f6f7f9;
  color: #1f2933;
  line-height: 1.6;
}

/* =========================
   2. Allgemeine Elemente
========================= */

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: #111827;
}

p {
  color: #4b5563;
}

button,
.button,
#hero a {
  display: inline-block;
  background-color: #111827;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

button:hover,
.button:hover,
#hero a:hover {
  background-color: #374151;
}
.hidden {
  display: none;
}

/* =========================
   3. Seitenlayout
========================= */

main {
    width: 100%;

}
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* =========================
   4. Header-Bereich
========================= */

header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
header nav a {
    color: #4b5563;
    font-weight: 500;
}

header nav a:hover {
    color: #111827;

}

/* =========================
   5. Hero-Bereich
========================= */

#hero {
    max-width: none;
    background: linear-gradient(135deg, #111827, #374151);
    color: white;
    padding: 120px 24px;
    text-align: center;
}
#hero h1 {
    color: white;
    font-size: 48px;
    max-width: 800px;
    margin: 0 auto 24px auto;
}
#hero p {
    color: #e5e7eb;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 32px auto;
}
#hero a {
    background-color: white;
    color: #111827;
    font-weight: 600;
}
#hero a:hover {
    background-color: #e5e7eb;
}

/* =========================
   6. Ablaufbereich
========================= */

#how-it-works h2,
#valuation-form h2,
#result-preview h2,
#report h2,
#trust h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}
#how-it-works {
    background-color: #f6f7f9
}
#how-it-works article {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

#how-it-works article h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* =========================
   7. Bewertungsformular
========================= */

#valuation-form {
    background-color: white;
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0,06);
}

form {
    max-width: 760px;
    margin: 0 auto;
}

fieldset {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
legend {
    font-weight: 700;
    padding: 0 8px;
    color: #111827;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    color: #111827
}

.geo-status {
  margin: -10px 0 20px 0;
  color: #6b7280;
  font-size: 14px;
}

.geo-status.success {
  color: #047857;
}

.geo-status.warning {
  color: #b45309;
}

.geo-status.error {
  color: #b91c1c;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}
form button {
    width: 100%;
    margin-top: 8px;
    font-weight: 700;
}

/* =========================
   8. Ergebnisbereich
========================= */

#result-preview {
  text-align: center;
}

.result-card,
.calculation-details {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.value {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  margin: 16px 0;
}

.calculation-details ul {
  list-style: none;
  margin-top: 16px;
}

.calculation-details li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.risk-details {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.risk-details h3 {
  margin-bottom: 16px;
}

.risk-details ul {
  list-style: none;
  padding: 0;
}

.risk-details li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

.risk-details li:last-child {
  border-bottom: none;
}

.summary-details {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.summary-details h3 {
  margin-bottom: 16px;
}

.summary-details p {
  color: #4b5563;
  line-height: 1.7;
}

#valuation-summary {
  white-space: pre-line;
}

/* =========================
   9. PDF-Report
========================= */

#report {
  background-color: #111827;
  color: white;
  border-radius: 24px;
  text-align: center;
}

#report h2 {
  color: white;
}

#report p {
  color: #e5e7eb;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

#report button {
  background-color: white;
  color: #111827;
  font-weight: 700;
}

#report button:hover {
  background-color: #e5e7eb;
}

.report-page {
  background-color: white;
  color: #111827;
  max-width: 900px;
  margin: 40px auto;
  padding: 48px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 2px solid #111827;
  padding-bottom: 24px;
  margin-bottom: 32px;
  background-color: transparent;
  position: static;
}

.report-header h2 {
  margin: 0;
  color: #111827;
}

.report-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.report-date {
  text-align: right;
}

.report-date p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.report-section {
  max-width: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.report-section h3,
.report-disclaimer h3 {
  margin-bottom: 16px;
  color: #111827;
}

.report-section table {
  width: 100%;
  border-collapse: collapse;
}

.report-section td {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.report-section td:first-child {
  color: #6b7280;
  width: 40%;
}

.report-section td:last-child {
  font-weight: 600;
  color: #111827;
}

.report-value-box {
  background-color: #f3f4f6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.report-value-box p {
  margin-bottom: 8px;
  color: #6b7280;
}

.report-value-box strong {
  font-size: 36px;
  color: #111827;
}

#report-risk-list {
  list-style: none;
  padding: 0;
}

#report-risk-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

#report-summary {
  white-space: pre-line;
  line-height: 1.7;
}

.report-disclaimer {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.report-disclaimer h3 {
  color: #9a3412;
}

.report-disclaimer p {
  color: #7c2d12;
}

#pdf-button {
  display: block;
  margin: 32px auto 0 auto;
}

#report .report-page p {
  color: #374151;
}

#report-value-range {
  color: #374151;
  font-weight: 500;
}

#report-summary {
  color: #374151;
  white-space: pre-line;
  line-height: 1.7;
}

#report .report-disclaimer p {
  color: #431407;
}

button:disabled,
#pdf-button:disabled {
  background-color: #9ca3af;
  color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

.saved-valuation-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.saved-valuation-card h3 {
  margin-bottom: 8px;
}

.saved-valuation-card p {
  margin-bottom: 6px;
  color: #4b5563;
}

.delete-valuation-button {
  margin-top: 12px;
  background-color: #b91c1c;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.delete-valuation-button:hover {
  background-color: #991b1b;
}

/* =========================
   10. Hinweisblock
========================= */

#trust {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  text-align: center;
}

#trust h2 {
  color: #9a3412;
}

#trust p {
  max-width: 800px;
  margin: 0 auto;
  color: #7c2d12;
}

/* =========================
   11. Kontakt und Rechtliches
========================= */

.legal-section h2 {
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.contact-card,
.legal-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-card h3,
.legal-card h3 {
  margin: 24px 0 10px 0;
}

.contact-card h3:first-child,
.legal-card h3:first-child {
  margin-top: 0;
}

.contact-card a,
.legal-card a {
  color: #111827;
  font-weight: 700;
  text-decoration: underline;
}

.contact-form {
  max-width: none;
  margin: 0;
}

.contact-form fieldset {
  background-color: white;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
  color: #374151;
  font-weight: 500;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0 0;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: #047857;
  font-weight: 700;
}

.legal-note {
  margin-top: 24px;
  padding: 16px;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #7c2d12;
}

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

.paywall-section h2 {
  font-size: 32px;
  margin-bottom: 32px;
}

.paywall-card {
  max-width: 760px;
  margin: 0 auto;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.paywall-card h3 {
  margin-bottom: 12px;
}

#paywall-status {
  margin: 20px auto;
  color: #4b5563;
  font-weight: 700;
}

/* =========================
   12. Footer
========================= */

footer {
  background-color: #111827;
  color: white;
  padding: 32px 24px;
  text-align: center;
}

footer p {
  color: #d1d5db;
  margin-bottom: 16px;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

footer nav a {
  color: #d1d5db;
}

footer nav a:hover {
  color: white;
}

/* =========================
   12. Responsive Design
========================= */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 16px;
  }

  header nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  #hero {
    padding: 80px 24px;
  }

  #hero h1 {
    font-size: 34px;
  }

  #hero p {
    font-size: 18px;
  }

  section {
    padding: 56px 20px;
  }

  #valuation-form {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  fieldset {
    padding: 20px;
  }

  .value {
    font-size: 32px;
  }

  footer nav {
    flex-direction: column;
    gap: 12px;
  }

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

  .contact-card,
  .legal-card {
    padding: 24px;
  }
}
@media print {
  /* Alles ausblenden, was nicht zum Report gehört */
  header,
  footer,
  main > section:not(#report),
  #report > h2,
  #report > p,
  #pdf-button {
    display: none !important;
  }

  /* Report-Bereich selbst neutralisieren */
  #report {
    display: block !important;
    background: white !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Eigentliches Report-Dokument */
  #report-document {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: white !important;
    color: #111827 !important;
  }

  .report-page {
    font-size: 11pt;
    line-height: 1.4;
  }

  .report-header {
    position: static !important;
    background: white !important;
    color: #111827 !important;
    box-shadow: none !important;
    border-bottom: 2px solid #111827;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .report-section {
    margin-bottom: 20px !important;
    padding: 0 !important;
  }

  .report-section h3,
  .report-disclaimer h3 {
    margin-bottom: 8px !important;
  }

  .report-section td {
    padding: 6px 0 !important;
  }

  .report-value-box {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .report-value-box strong {
    font-size: 24pt !important;
  }

  .report-disclaimer {
    padding: 16px !important;
    margin-top: 20px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
  }

  #report-risk-list li {
    padding: 6px 0 !important;
  }

  #report-summary {
    white-space: pre-line;
    line-height: 1.4;
  }

  @page {
    size: A4;
    margin: 15mm;
  }
}
