/* CI FOTOSIE – Claudia Lämmer: Schwarz/Weiß, Montserrat + Licorice, eckige Buttons */
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Licorice"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/licorice-400.woff2") format("woff2"); }

:root {
  --ink: #222222;
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #222222;
  --muted: #58585a;
  --line: #cccccc;
  --soft: #f4f4f4;
  --accent: #222222;
  --accent-hover: #000000;
  --accent-soft: rgba(0, 0, 0, .04);
  --danger: #b3261e;
  --warn-bg: #f4f1ea;
  --warn: #5c4a1f;
  --ok: #222222;
  --radius: 0px;
  --script: "Licorice", "Brush Script MT", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1b;
    --card: #272727;
    --text: #eaeaea;
    --muted: #a8a8aa;
    --line: #4a4a4a;
    --soft: #333333;
    --accent: #eaeaea;
    --accent-hover: #ffffff;
    --accent-soft: rgba(255, 255, 255, .06);
    --warn-bg: #3a3326;
    --warn: #e6d3a3;
    --ok: #eaeaea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1b1b; --card: #272727; --text: #eaeaea; --muted: #a8a8aa; --line: #4a4a4a; --soft: #333333;
  --accent: #eaeaea; --accent-hover: #ffffff; --accent-soft: rgba(255, 255, 255, .06); --warn-bg: #3a3326; --warn: #e6d3a3; --ok: #eaeaea;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 300 16px/1.6 "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}

.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background-color: #2b2420;
  background-image: url("img/hintergrund.jpg");
  background-image: image-set(url("img/hintergrund.webp") type("image/webp"), url("img/hintergrund.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 44%; /* Sonne und Paar im Bild halten */
}
/* Leichter Verlauf links, damit Karte und Fußzeile ruhig stehen */
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .bg { background-image: url("img/hintergrund.jpg"); background-image: image-set(url("img/hintergrund-800.webp") type("image/webp"), url("img/hintergrund.jpg") type("image/jpeg")); }
}

.topbar { background: #ffffff; border-bottom: 1px solid #eaeaea; padding: 12px 28px; }
.brand { display: inline-flex; align-items: center; gap: 20px; color: #222; text-decoration: none; }
.brand-logo { display: block; width: 149px; height: 56px; }
.brand-name { font-weight: 400; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #58585a; padding-left: 20px; border-left: 1px solid #cccccc; }

.footer { margin-top: auto; padding: 18px 28px; font-size: 13px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.stage { padding: 40px 28px 48px; display: flex; }

.card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.card.center { text-align: center; }
.card h1 { font: 400 46px/1.1 var(--script); letter-spacing: 1px; margin: 0 0 8px; }
.card h2 { font: 400 42px/1.1 var(--script); letter-spacing: 1px; margin: 12px 0 4px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
em.muted { font-style: normal; font-weight: 400; }
.eyebrow { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: .15em; text-transform: uppercase; word-break: break-all; }

/* Dropzone */
.dropzone {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 18px;
  border: 1px dashed var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dz-plus {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 0;
  background: var(--accent); color: var(--card); font-size: 26px; font-weight: 300; line-height: 1;
}
.dropzone.compact { padding: 12px 14px; }
.dropzone.compact .dz-plus { width: 32px; height: 32px; font-size: 20px; }

.drop-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94);
  color: #222; font: 400 64px/1 var(--script);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.drop-overlay > div { border: 1px dashed #222; padding: 48px 64px; }
.drop-overlay.show { opacity: 1; }

/* Dateiliste */
.files { list-style: none; margin: 12px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.file-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 0;
  background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .03em;
}
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.icon-btn {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
  font-size: 18px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--soft); color: var(--text); }

/* Formular */
.field { display: block; margin: 14px 0 0; padding: 0; border: 0; }
.field > span, .field > legend { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; padding: 0; }
.field em.muted { text-transform: none; letter-spacing: 0; font-weight: 300; }
input[type="email"], input[type="text"], input[type="password"], textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--text);
  font: inherit; resize: vertical;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.segmented { display: flex; border: 1px solid var(--line); }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; text-align: center; padding: 8px 4px;
  font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 400;
}
.segmented input:checked + span { background: var(--accent); color: var(--card); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }

.check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary { color: var(--card); }
.btn.primary:hover { background: var(--card); border-color: var(--accent); color: var(--accent); }
.btn.ghost { border-color: transparent; color: var(--muted); margin-top: 12px; }
.btn.block { display: flex; width: 100%; margin-top: 20px; padding: 14px; font-size: 14px; letter-spacing: .15em; text-transform: uppercase; }

.error { color: var(--danger); font-size: 14px; margin: 14px 0 0; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 0; padding: 10px 12px; font-size: 14px; margin: 16px 0 0; }
.notice.ok { background: var(--accent-soft); color: var(--accent); text-align: center; }

.message {
  margin: 16px 0 0; padding: 12px 14px;
  background: var(--soft); border-left: 2px solid var(--accent);
  white-space: pre-wrap; word-break: break-word;
}

/* Fortschritt */
.ring {
  --p: 0;
  width: 132px; height: 132px; margin: 8px auto 0; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--soft) 0);
  transition: background .2s;
}
.ring span {
  display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%;
  background: var(--card); font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums;
}

/* Ergebnis */
.state { text-align: center; padding: 12px 0; }
.state-icon {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: var(--soft);
}
.state-icon.ok { background: var(--ok); color: var(--card); }
.linkbox { display: flex; gap: 8px; margin-top: 18px; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; }

@media (max-width: 560px) {
  .topbar { padding: 8px 16px; }
  .brand-logo { width: 112px; height: 42px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 11px; letter-spacing: .2em; padding-left: 12px; }
  .footer { padding: 12px 16px; }
  .stage { padding: 4px 16px 32px; }
  .card { max-width: none; padding: 20px; }
}
.center { text-align: center; }
