/* holidayjob legal styles
   Für Disclaimer, Rechtstexte und Footer
*/

:root {
--bg: #f5f7fb;
--surface: rgba(255, 255, 255, 0.92);
--surface-muted: #f8fafc;
--text: #1e293b;
--text-soft: #64748b;
--border: #dbe2ea;
--accent: #2563eb;
--accent-soft: rgba(37, 99, 235, 0.08);
--max-width: 980px;
--radius: 18px;
--shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
--shadow-hover: 0 18px 38px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 32px 24px 48px;
  background: var(--surface);
  border: 1px solid rgba(219, 226, 234, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Rechtstext-Seiten */
main h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

main > p:first-of-type {
  color: var(--text-soft);
  margin-top: 0;
  margin-bottom: 2rem;
}

main h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

main p,
main li {
  font-size: 1rem;
  color: var(--text);
}

main ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1rem 0;
}

main li + li {
  margin-top: 0.35rem;
}

main strong {
  color: var(--text);
}

/* Disclaimer oben auf der Startseite */
.legal-disclaimer,
#site-disclaimer {
  max-width: var(--max-width);
  margin: 24px auto 28px;
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-disclaimer h2,
#site-disclaimer h2 {
  margin: 0 0 0.9rem 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal-disclaimer p,
#site-disclaimer p {
  margin: 0 0 0.9rem 0;
  color: var(--text-soft);
}

.legal-disclaimer p:last-child,
#site-disclaimer p:last-child {
  margin-bottom: 0;
}

.legal-disclaimer a,
#site-disclaimer a {
  font-weight: 600;
}

/* Footer-Impressum */
.site-footer,
#site-impressum {
  margin-top: 48px;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-soft);
}

.site-footer p,
#site-impressum p {
  max-width: var(--max-width);
  margin: 0 auto 0.75rem auto;
  font-size: 0.96rem;
}

.site-footer p:last-child,
#site-impressum p:last-child {
  margin-bottom: 0;
}

.site-footer strong,
#site-impressum strong {
  color: var(--text);
}

/* Kleine Linkliste im Footer schöner machen */
.site-footer p a,
#site-impressum p a {
  font-weight: 500;
}

/* Form-Checkboxen, falls du die AGB/Datenschutz-Checkbox einbaust */
label:has(input[type="checkbox"]) {
  display: block;
  margin-top: 14px;
  color: var(--text-soft);
}

input[type="checkbox"] {
  margin-right: 8px;
  transform: translateY(1px);
}

/* Mobile */
@media (max-width: 640px) {
  main {
    padding: 28px 16px 48px;
  }

  .legal-disclaimer,
  #site-disclaimer {
    margin: 16px;
    padding: 18px;
  }

  .site-footer,
  #site-impressum {
    padding: 24px 16px 32px;
  }
}
