/* Kundenportal — übernimmt das Design-System der Hauptseite (gregordietz.at) */

:root {
  --ink:        #0A1220;
  --gold:       #C6A15B;
  --gold-2:     #E0C48D;
  --paper:      #F7F5F0;
  --paper-2:    #EFEBE3;
  --white:      #FFFFFF;
  --text:       #182132;
  --muted:      #5B6577;
  --line:       #E2DDD3;
  --line-2:     #D3CCBF;
  --danger:     #9B3A34;
  --danger-bg:  #F6ECEA;

  --font-serif: 'DM Serif Display', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r:    2px;
  --r-lg: 4px;

  --shadow: 0 1px 2px rgba(10,18,32,.04), 0 12px 40px rgba(10,18,32,.06);
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}

.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------- Brand-Header */
.brand-bar {
  position: relative;
  padding: 1.375rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.brand-bar::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.brand-bar__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand-mark-link {
  display: inline-flex;
  align-items: center;
  gap: .8125rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: var(--r);
  transition: color .4s var(--ease), background-color .4s var(--ease);
}
.brand-mark-link:hover .brand-mark { background: var(--gold); color: var(--ink); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  color: var(--ink);
}
.brand-text em {
  font-style: normal;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .25rem;
}

/* ---------------------------------------------------------- Layout */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

header.site { padding: 24px 0 8px; }

header.site h1 { font-size: clamp(1.625rem, 3.4vw, 2.125rem); margin: 0 0 .5rem; }

header.site p { color: var(--muted); font-weight: 300; margin: 0; max-width: 52ch; }

header.site a { color: var(--gold); }
header.site a:hover { text-decoration: underline; }

.site-footer {
  padding: 2rem 20px 2.5rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------- Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 24px;
}

/* ---------------------------------------------------------- Form */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

fieldset + fieldset { padding-top: 2rem; border-top: 1px solid var(--line); }

legend {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0;
  margin-bottom: 1.25rem;
  width: 100%;
}

.field { margin-bottom: 1.375rem; }

label {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.required::after {
  content: " *";
  color: var(--gold);
}

input[type=text],
input[type=email],
input[type=file],
textarea {
  width: 100%;
  padding: .8125rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

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

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------- Buttons */
button, .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9375rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease-out);
}
button::after, .btn::after {
  content: '';
  position: absolute; inset: -1px; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
button:hover::after, .btn:hover::after,
button:focus-visible::after, .btn:focus-visible::after { transform: translateY(0); }
button:hover, .btn:hover { color: var(--ink); border-color: var(--gold); }

.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-2);
}
.btn-secondary::after { background: var(--ink); }
.btn-secondary:hover { color: var(--white); border-color: var(--ink); }

.btn-danger {
  color: var(--danger);
  background: transparent;
  border-color: var(--danger);
}
.btn-danger::after { background: var(--danger); }
.btn-danger:hover { color: var(--white); border-color: var(--danger); }

/* ---------------------------------------------------------- Status & Misc */
.errors {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--r);
  padding: .875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
}
.errors ul { margin: 0; padding-left: 1.125rem; }

.muted { color: var(--muted); font-size: .9rem; }

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: .75rem .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

tbody tr { transition: background-color .3s var(--ease); }
tbody tr:hover { background: var(--paper-2); }

.answers dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
}

.answers dd { margin: .25rem 0 0; white-space: pre-wrap; }

.tag {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .125rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--paper-2);
  padding: .1rem .4rem;
  border-radius: var(--r);
}

/* ---- Erweiterung 09.09.2026: Einleitungen, Hilfetexte, Auswahlfragen ---- */

/* Einleitender Absatz je Abschnitt */
.intro {
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin: -.5rem 0 1.5rem;
  max-width: 62ch;
}
.intro b { color: var(--text); font-weight: 600; }
.intro i { font-style: italic; }

/* Hilfetext unter einem Label: enger an das Feld heranrücken */
.field > .muted { margin: -.25rem 0 .5rem; line-height: 1.55; max-width: 62ch; }

/* Titel einer Auswahlfrage — kein <label>, sieht aber aus wie eines */
.feldtitel {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

/* Auswahlmöglichkeiten */
.optionen { display: flex; flex-direction: column; gap: .5rem; }

.option {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin: 0;
  padding: .75rem .9375rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.option:hover { border-color: var(--gold); }

.option input[type=radio] {
  width: auto;
  margin: .1875rem 0 0;
  flex: none;
  accent-color: var(--gold);
}

.option:has(input[type=radio]:checked) {
  border-color: var(--gold);
  background: var(--paper-2);
}

.option:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.18); }

/* ------------------------------------------------- Datenschutz (12.09.2026) */
.datenschutz-hinweis {
  margin: 1.5rem 0 1rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}
.datenschutz-hinweis a { color: inherit; text-decoration: underline; }
.site-footer__links { margin-top: .5rem; }
.site-footer__links a { color: inherit; text-decoration: underline; }
.site-footer__links span { margin: 0 .5rem; }
