/* ==========================================================================
   neowake — Widerruf / Kündigung (Legal Self-Service)
   Static, no framework, no tracking. Dark theme.
   ========================================================================== */

/* --- Fonts (neowake CDN, woff2) --- */
@font-face {
  font-family: "Gilroy";
  src: url("https://neowake-external.b-cdn.net/General/Fonts/gilroy/Gilroy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("https://neowake-external.b-cdn.net/General/Fonts/gilroy/Gilroy-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("https://neowake-external.b-cdn.net/General/Fonts/gilroy/Gilroy-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("https://neowake-external.b-cdn.net/General/Fonts/futura-pt/FuturaPT-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("https://neowake-external.b-cdn.net/General/Fonts/futura-pt/FuturaPT-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --surface-primary: #15161A;
  --surface-secondary: #2A2A2A;
  --text-heading: #F5F5F5;
  --text-body: #F5F5F5;
  --text-muted: #C6C6C6;
  --text-on-light: #202020;
  --cta-bg: #0171E2;
  --cta-bg-hover: #005BB6;
  --cta-text: #FFFFFF;
  --link: #549DFC;
  --border-neutral: #C6C6C6;
  --border-focus: #549DFC;
  --radius: 8px;

  --font-heading: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Futura PT", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--surface-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Layout --- */
.page {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.container {
  width: 100%;
  max-width: 640px;
}

.card {
  background-color: var(--surface-secondary);
  border-radius: var(--radius);
  padding: 48px;
}

/* --- Typography --- */
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  color: var(--text-heading);
  margin: 0 0 24px;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  color: var(--text-heading);
  margin: 0 0 16px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-heading);
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--text-body);
}

.lead {
  font-size: 18px;
  line-height: 28px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 14px;
  line-height: 20px;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.brand-mark {
  display: block;
  height: 32px;
  width: auto;
  margin: 0 0 32px;
}

.intro {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
  margin: 0 0 32px;
}
.intro a { color: var(--link); }

.notice h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 12px;
  color: var(--text-heading);
}

.explain {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.explain li {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
  margin-bottom: 12px;
}
.explain strong { color: var(--text-heading); }

/* --- Buttons / CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--cta-bg);
  color: var(--cta-text);
}

.btn-primary:hover {
  background-color: var(--cta-bg-hover);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

/* Channel-choice secondary style — still blue, outlined */
.btn-choice {
  background-color: transparent;
  color: var(--text-heading);
  border: 2px solid var(--border-neutral);
  font-weight: 400;
}

.btn-choice:hover {
  border-color: var(--cta-bg);
  background-color: rgba(1, 113, 226, 0.08);
  text-decoration: none;
}

.btn-choice[aria-pressed="true"] {
  border-color: var(--cta-bg);
  background-color: rgba(1, 113, 226, 0.15);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

/* --- Forms --- */
.field {
  margin-bottom: 24px;
}

label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-heading);
  margin-bottom: 8px;
}

label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-heading);
  background-color: var(--surface-primary);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  padding: 12px 16px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(1, 113, 226, 0.4);
}

/* Date / select rendering on dark */
input[type="date"] {
  color-scheme: dark;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23C6C6C6' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* Honeypot — visually hidden but not display:none (so bots fill it) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Notice / Hint boxes --- */
.notice {
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.notice h3 {
  margin-top: 0;
}

.privacy-hint {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  margin-top: 16px;
}

/* --- Result boxes --- */
.result {
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.result-success {
  border: 1px solid #2E7D32;
  background-color: rgba(46, 125, 50, 0.12);
}

.result-error {
  border: 1px solid #C62828;
  background-color: rgba(198, 40, 40, 0.12);
}

.result p:last-child {
  margin-bottom: 0;
}

/* --- Visibility helpers --- */
[hidden] {
  display: none !important;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

/* --- Footer --- */
.site-footer {
  flex-shrink: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 8px;
}

.site-footer .sep {
  color: var(--border-neutral);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet (>=768) keeps desktop type but tighter card padding handled at mobile */

/* Mobile (<=767) */
@media (max-width: 767px) {
  .page {
    padding: 24px;
  }

  .card {
    padding: 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 44px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  h3 {
    font-size: 20px;
    line-height: 28px;
  }
}
