/* MIRNÈS STUDIO — Kundenportal
   Look wie die Coming-Soon-Page: Fond #FFFCFA mit weichem Verlauf und Korn,
   Bordeaux-Band, Helvetica Neue Light, weit gesperrte Versalien, keine Serifen. */

:root {
  --ink: #1E1612;
  --ink-2: rgba(30,22,18,.62);
  --ink-3: rgba(30,22,18,.42);
  --line: rgba(30,22,18,.12);
  --line-2: rgba(30,22,18,.07);
  --bg: #FFFCFA;
  --bg-2: #FAF5F1;
  --bg-3: #F0E9E3;
  --bordeaux: #5E0B16;
  --rose: #E9C9CE;
  --warm-1: #F3D3BE;
  --warm-2: #D9A283;
  --ok: #3E7B4F;
  --ok-bg: #E4EFE6;
  --sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(ellipse 90% 70% at 40% 20%, #FFFCFA 0%, #FAF5F1 50%, #F0E9E3 100%) fixed;
}
/* Korn */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .8 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.caps { text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; font-weight: 400; }
.muted { color: var(--ink-2); }

/* Bordeaux-Band */
.topbar {
  background: var(--bordeaux); color: #fff; text-align: center;
  text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; line-height: 1.5;
  padding: 10px var(--gutter);
}
.topbar b { font-weight: 400; }
.topbar a { border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 1px; transition: border-color .3s ease, color .3s ease; }
.topbar a:hover { border-color: var(--rose); color: var(--rose); }
.topbar-sep { margin: 0 .8em; opacity: .6; }

/* Eingabefelder */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 400; color: var(--ink-2); }
.field input {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-3);
  padding: 10px 0; border-radius: 0; transition: border-color .3s ease;
}
.field input:focus { outline: none; border-bottom-color: var(--ink); }

/* Karten der Übersicht */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; font-weight: 400; color: var(--ink-2);
}
.chip.off { color: var(--ink-3); border-style: dashed; }

/* Kopf: Logo links, Navigation rechts */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px var(--gutter) 22px;
}
.head .logo img { width: clamp(190px, 22vw, 300px); height: auto; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; font-weight: 400;
  color: var(--ink-3); padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a:hover { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

.wrap { padding: 0 var(--gutter) 80px; }

/* Seitentitel */
.title-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 0 26px; border-top: 1px solid var(--line);
}
.title-row h1 {
  margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: .16em;
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.15;
}
.title-row .sub { margin-top: 10px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; font-weight: 400;
  padding: 13px 22px; border: 1px solid var(--ink); border-radius: 0;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.btn.solid:hover { background: #4A0811; border-color: #4A0811; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn:focus-visible, .nav a:focus-visible { outline: 1px solid var(--bordeaux); outline-offset: 3px; }

.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; transition: border-color .3s ease, background .3s ease;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.2; }

/* Grüner Haken */
.check {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: #fff; flex: none;
}
.check svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2; }

/* Segment-Schalter */
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button {
  text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 400;
  padding: 10px 16px; color: var(--ink-3); transition: background .3s ease, color .3s ease;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.foot {
  padding: 28px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--ink-3);
}

/* Hinweis-Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--ink); color: var(--bg); padding: 12px 20px;
  text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 400;
  transition: opacity .35s ease, transform .35s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .topbar { letter-spacing: .08em; font-size: 10px; }
  .head { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Studio: Formular-Fenster */
.sf-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(30,22,18,.38); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: clamp(24px, 6vh, 72px) 16px; }
.sf { width: 100%; max-width: 520px; background: var(--bg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 80px rgba(30,22,18,.18); }
.sf h2 { margin: 0 0 4px; font-weight: 300; text-transform: uppercase; letter-spacing: .16em; font-size: 17px; }
.sf textarea, .sf select { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; resize: vertical; }
.sf input[type=file] { font: inherit; font-size: 13px; padding: 6px 0; }
.sf-checks { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.sf-checks label { display: inline-flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.sf-hint { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.sf-err { color: var(--bordeaux); font-size: 13px; margin: 0; min-height: 1.2em; }
.sf-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-del { color: var(--bordeaux); font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.sf button[disabled] { opacity: .5; pointer-events: none; }
.studio-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sf-checks input { accent-color: var(--bordeaux); }
