/* Shared styles for the legal pages (Impressum, Datenschutz, AGB).
   The landing page keeps its own inline <style> block; these pages are
   text-only, so they only need the design tokens plus prose styling. */

:root{
  --color-primary: rgb(57,169,73);
  --color-primary-dark: rgb(41, 128, 55);
  --color-primary-light: rgb(224, 244, 227);
  --color-text: #1c2521;
  --color-text-muted: #55625c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8f5;
  --color-border: #dfe6e1;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(28, 37, 33, 0.08);
  --max-width: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: var(--color-primary-dark); }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header{
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo{
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.logo img{ height: 48px; width: auto; max-width: 100%; }
.header-cta .btn{ flex-shrink: 0; white-space: nowrap; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary{ background: var(--color-primary); color: #fff; }
.btn-primary:hover{ background: var(--color-primary-dark); }

/* Prose */
.legal{
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 0 72px;
}
.legal h1{
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 8px;
}
.legal .updated{
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal h2{
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.3;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
.legal h3{ font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li{ color: var(--color-text-muted); }
.legal p{ margin: 0 0 14px; }
.legal ul, .legal ol{ margin: 0 0 16px; padding-left: 22px; }
.legal li{ margin-bottom: 7px; }
.legal address{ font-style: normal; margin-bottom: 16px; }
.legal strong{ color: var(--color-text); }

/* A field that still needs real data before go-live. */
.todo{
  display: inline-block;
  background: #fff4d6;
  border: 1px solid #e6c65c;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13px;
  font-weight: 700;
  color: #6b5200;
}
.notice{
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.notice p{ margin: 0; font-size: 14px; }

/* Footer */
footer{ background: #131a15; color: #c6d0cb; padding: 48px 0 24px; }
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
footer h4{ color: #fff; font-size: 14px; margin: 0 0 14px; }
footer ul{ list-style: none; margin: 0; padding: 0; }
footer li{ margin-bottom: 9px; font-size: 13.5px; }
footer a{ color: #c6d0cb; text-decoration: none; }
footer a:hover{ color: #fff; }
footer p{ color: #8a978f; font-size: 13.5px; }
.footer-logo{
  height: 46px;
  width: auto;
  margin-top: 8px;
}
.footer-legal{
  font-size: 12px;
  color: #8a978f;
  border-top: 1px solid #263028;
  padding-top: 20px;
}
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #8a978f;
  margin-top: 16px;
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .site-header .container{ gap: 10px; }
  .logo img{ height: 36px; }
  .header-cta .btn{ padding: 10px 14px; font-size: 13.5px; }
  .legal{ padding: 36px 0 48px; }
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Data tables (e.g. the categories of data required for a credit agreement).
   They are wide, so they scroll inside their own box rather than widening the page. */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}
.legal table{
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
  font-size: 13.5px;
}
.legal thead th{
  background: var(--color-bg-alt);
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.legal tbody td{
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}
.legal tbody tr:last-child td{ border-bottom: none; }
.legal tbody td:first-child{ color: var(--color-text); font-weight: 600; }
.legal code{
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
