/* Hochzeitsgalerie - warm, ruhig, mit viel Platz fuer Bilder. */

:root {
    --grund: #fbf8f5;
    --karte: #ffffff;
    --text: #2c2520;
    --leise: #7a6f66;
    --rand: #ece4dc;
    --marke: #a8836b;
    --marke-dunkel: #8a6a55;
    --gut: #3f7d58;
    --gut-grund: #f0f8f3;
    --warn: #9a4b3c;
    --warn-grund: #fdf3f1;
    --uhr-grund: #fdf6e8;
    --uhr-rand: #ecd9ae;
    --radius: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--grund);
    color: var(--text);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

.huelle { max-width: 46rem; margin: 0 auto; padding: 20px 14px 56px; }
.huelle.breit { max-width: 76rem; }
.mitte { text-align: center; }
.mb { margin-bottom: 14px; }
.mt { margin-top: 14px; }

.kopf { padding: 20px 0 8px; }
.zierde {
    font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--marke); margin-bottom: 4px;
}
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
p  { font-size: 15px; }
.leise { color: var(--leise); font-size: 14px; }

.karte {
    background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.karte.paar { border-color: var(--marke); background: #fffdfb; }

.abschnitt { margin: 26px 0 12px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
    width: 100%; font: inherit; font-size: 17px;   /* unter 16px zoomt iOS hinein */
    padding: 12px 14px; border: 2px solid var(--rand); border-radius: 10px;
    background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marke); }
textarea { min-height: 6rem; resize: vertical; }

.knopf {
    display: block; width: 100%; text-align: center;
    font: inherit; font-size: 16px; font-weight: 600;
    padding: 13px 18px; border: 2px solid transparent; border-radius: 10px;
    background: var(--marke); color: #fff; cursor: pointer; text-decoration: none;
}
.knopf:hover { background: var(--marke-dunkel); }
.knopf.zweit { background: transparent; color: var(--marke); border-color: var(--marke); }
.knopf.still { background: transparent; color: var(--leise); border-color: var(--rand); }
.knopf + .knopf { margin-top: 8px; }

.hinweis { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.hinweis.gut    { background: var(--gut-grund); border: 1px solid #b9dfc9; color: var(--gut); }
.hinweis.fehler { background: var(--warn-grund); border: 1px solid #f0cdc6; color: var(--warn); }
.hinweis.uhr    { background: var(--uhr-grund); border: 1px solid var(--uhr-rand); }

/* Die Begruessung des Paares ist kein Kleingedrucktes - sie ist das Erste,
   was ein Gast liest. */
.begruessung { font-size: 15px; line-height: 1.6; }

.schalter { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.schalter input { width: 22px; height: 22px; }

/* --- Hochladen --- */
.fortschritt { margin-top: 14px; }
.balken { height: 8px; background: var(--rand); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.balken span { display: block; height: 100%; width: 0; background: var(--marke); transition: width .2s; }

/* --- Bilder --- */
.raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
@media (max-width: 420px) { .raster { grid-template-columns: repeat(2, 1fr); } }

.bild {
    position: relative; margin: 0; border-radius: 10px; overflow: hidden;
    background: var(--rand); aspect-ratio: 1 / 1;
}
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.bild figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px;
    font-size: 12px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.bild.wartet img { opacity: .55; }
.marke {
    position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 600;
    background: rgba(154,75,60,.92); color: #fff; padding: 3px 7px; border-radius: 99px;
}

.werkzeuge { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.wz {
    width: 32px; height: 32px; border: none; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,.9); font-size: 15px; line-height: 1;
}
.wz.an { background: #f5c04e; }
.wz:disabled { opacity: .5; }

/* --- Lupe --- */
.lupe {
    position: fixed; inset: 0; z-index: 50; background: rgba(20,16,13,.94);
    display: flex; align-items: center; justify-content: center; padding: 12px;
}

/* Diese eine Zeile entscheidet, ob die Seite bedienbar ist.
   Das Attribut hidden setzt display:none nur mit der Staerke des
   Browser-Stylesheets - eine eigene Regel mit display:flex schlaegt es.
   Ohne die Zeile liegt die Lupe unsichtbar ueber der ganzen Seite, und kein
   Knopf und kein Bild laesst sich mehr antippen. Im Browsertest gefunden;
   per curl ist so etwas unsichtbar. */
.lupe[hidden] { display: none; }
.lupe img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lupe-zu {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
    border: none; border-radius: 50%; background: rgba(255,255,255,.9);
    font-size: 18px; cursor: pointer; z-index: 2;
}

.lupe-pfeil {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 64px; border: none; border-radius: 8px;
    background: rgba(255,255,255,.18); color: #fff;
    font-size: 30px; line-height: 1; cursor: pointer; z-index: 2;
}
.lupe-pfeil:hover { background: rgba(255,255,255,.3); }
.lupe-pfeil.zurueck { left: 6px; }
.lupe-pfeil.vor { right: 6px; }

.lupe-zaehler {
    position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
    color: rgba(255,255,255,.85); font-size: 13px;
}

/* Auf dem Handy wird gewischt - die Pfeile wuerden dort nur das Bild
   verdecken. */
@media (hover: none) and (pointer: coarse) {
    .lupe-pfeil { display: none; }
}

details summary { cursor: pointer; font-weight: 600; }

.fuss { text-align: center; font-size: 12px; color: var(--leise); padding: 26px 0 0; }
.fuss a { color: var(--leise); }

/* --- Admin --- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--rand); text-align: left; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); }
.zahlen { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.zahl { flex: 1 1 8rem; background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 12px; }
.zahl b { display: block; font-size: 21px; }
.reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.klein { font-size: 13px; padding: 7px 12px; width: auto; display: inline-block; }
.rollbar { overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* --- Die Gaestekarte auf der Startseite --- */
.karte-bild {
    margin: 0 0 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rand);
    background: #fff;
}
.karte-bild img { display: block; width: 100%; height: auto; }

.dankbild-vorschau {
    border: 1px solid var(--rand); border-radius: 10px; overflow: hidden;
    margin-bottom: 12px; background: #fff;
}
.dankbild-vorschau img { display: block; width: 100%; height: auto; }
.dankbild-vorschau.leer {
    padding: 28px 14px; text-align: center; border-style: dashed;
}

.dankbild {
    margin: 0 0 14px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--rand); background: #fff;
}
.dankbild img { display: block; width: 100%; height: auto; }

.schritte { margin: 0; padding-left: 1.2em; }
.schritte li { font-size: 15px; margin-bottom: 10px; }
.schritte li::marker { color: var(--marke); font-weight: 700; }
