/* CLARO Mallorca – gemeinsames Stylesheet */
:root {
  --kalk: #F4F0E9;
  --papier: #FBF9F5;
  --sand: #EAE4DA;
  --tinte: #1C1A17;
  --tinte-2: #25221E;
  --text: #3D3830;
  --grau: #6B6358;
  --grau-hell: #9A9184;
  --linie: #D9D2C6;
  --linie-hell: #E2DBD0;
  --kiefer: #1F5C58;
  --kiefer-hell: #8CC2BC;
  --messing: #9C6B2E;
  --gruen: #4E8A5C;
  --gelb: #C28A33;
  --rot: #B24A38;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --breite: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kalk); color: var(--tinte); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--kiefer); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--kiefer); outline-offset: 3px; }
::placeholder { color: var(--grau-hell); }
::selection { background: var(--kiefer); color: var(--papier); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Typografie */
.label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--kiefer); }
.label.hell { color: var(--kiefer-hell); }
.label.grau { color: var(--grau); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.012em; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.03; letter-spacing: -.01em; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.12; }
.kursiv { font-style: italic; color: var(--kiefer); }
.dunkel .kursiv { color: inherit; }
.lead { margin: 0; font-size: 18px; line-height: 1.72; color: var(--text); }
.klein { font-size: 14px; color: var(--grau); }
.mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 4px; border: 1px solid var(--tinte); background: var(--tinte); color: var(--kalk); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:hover { color: var(--kalk); background: #000; transform: translateY(-1px); }
.btn.hell { background: var(--kalk); color: var(--tinte); border-color: var(--kalk); }
.btn.hell:hover { background: #fff; color: var(--tinte); }
.btn.rahmen { background: transparent; color: var(--tinte); }
.btn.rahmen:hover { background: var(--tinte); color: var(--kalk); }
.btn.rahmen-hell { background: transparent; color: var(--kalk); border-color: #6B6358; }
.btn.rahmen-hell:hover { border-color: var(--kalk); color: var(--kalk); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.pfeil { transition: transform .2s ease; }
.btn:hover .pfeil { transform: translateX(3px); }

/* Header */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 233, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinte); }
.marke b { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .28em; }
.marke span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } .kopf .wrap { flex-wrap: nowrap; min-height: 64px; } }
@media (max-width: 420px) { .marke span { display: none; } .marke b { font-size: 21px; } .nav .btn { padding: 0 14px; } }

/* Abschnitte */
.abschnitt { padding: 152px 0; }
.abschnitt.eng { padding: 112px 0; }
.dunkel { background: var(--tinte); color: var(--kalk); }
.dunkel .lead, .dunkel .klein { color: #CFC6B8; }
.sand { background: var(--sand); }
.papier { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 72px; }
.kopfzeile > div { display: flex; flex-direction: column; gap: 20px; }
.kopfzeile p.lead { max-width: 28em; font-size: 15px; color: var(--grau); }
@media (max-width: 640px) { .abschnitt { padding: 96px 0; } .abschnitt.eng { padding: 80px 0; } .kopfzeile { margin-bottom: 48px; } }

.raster { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.zwei { display: grid; gap: 56px 80px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }

/* Hero */
.hero { padding: 56px 0 0; }
.hero .zwei { align-items: center; gap: 48px 64px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.checks { border-top: 1px solid var(--tinte); }
.check { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
.check .mono { font-size: 12px; color: var(--kiefer); }
.check b { font-weight: 600; }
.check span.g { color: var(--grau); }
.start { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--tinte); border-radius: 6px; }
.start input { flex: 1 1 240px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--tinte-2); color: var(--kalk); font-size: 15px; }
.start input::placeholder { color: #9A9184; }
.start .btn { flex: 0 0 auto; }
.vertrauen { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; color: var(--grau); }
.vertrauen span::before { content: '— '; color: var(--kiefer); }

.plan { border: 1px solid var(--tinte); border-radius: 4px; background-color: var(--papier); background-image: linear-gradient(#ECE6DC 1px, transparent 1px), linear-gradient(90deg, #ECE6DC 1px, transparent 1px); background-size: 32px 32px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(28, 26, 23, .35); }
.plan svg { display: block; width: 100%; height: auto; }
.plankopf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tinte); background: var(--papier); font-family: var(--mono); font-size: 12px; }
.plankopf div { padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--linie); }
.plankopf div:last-child { border-right: 0; }
.plankopf span { color: var(--grau); }

/* Zeichnungs-Animation */
.zeichnung .strich { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 2.4s cubic-bezier(.6, .1, .2, 1) forwards; }
.zeichnung .s2 { animation-delay: .5s; }
.zeichnung .s3 { animation-delay: 1s; }
.zeichnung .s4 { animation-delay: 1.6s; animation-duration: 1.4s; }
.zeichnung .flaeche { opacity: 0; animation: einblenden 1s ease 1.6s forwards; }
.zeichnung .anmerkung { opacity: 0; animation: einblenden .8s ease 2.4s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes einblenden { to { opacity: 1; } }

/* Erscheinen beim Scrollen */
.erscheint { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.erscheint.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zeichnung .strich, .zeichnung .flaeche, .zeichnung .anmerkung { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .erscheint { opacity: 1; transform: none; transition: none; }
}

.fakten { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); padding-top: 56px; }
.fakt { padding-top: 16px; border-top: 1px solid var(--tinte); display: flex; flex-direction: column; gap: 6px; }
.fakt .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.fakt b { font-weight: 500; font-size: 17px; }

/* Emotion */
.zitat { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.18; }

/* Bereiche */
.karte { background: var(--kalk); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
.karte-kopf b { font-weight: 500; color: var(--kiefer); font-size: 13px; }
.karte-kopf span { font-size: 11px; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; }
.liste { border-top: 1px solid var(--tinte); }
.liste > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.liste .mono { font-size: 12px; color: var(--grau); padding-top: 2px; }
.liste .t { font-size: 15px; line-height: 1.55; color: var(--text); }

/* Bericht */
.blatt { background: var(--papier); color: var(--tinte); border-radius: 4px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--tinte); }
.blatt-kopf b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.tabelle-box { overflow-x: auto; }
table.befunde { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
table.befunde th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--grau); text-transform: uppercase; padding: 12px 10px; }
table.befunde td { padding: 16px 10px; border-top: 1px solid var(--linie-hell); vertical-align: top; }
table.befunde th:first-child, table.befunde td:first-child { padding-left: 28px; }
table.befunde th:last-child, table.befunde td:last-child { padding-right: 28px; }
table.befunde td.mono { font-size: 12px; white-space: nowrap; }
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.blatt-fuss { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 28px; border-top: 1px solid var(--tinte); }
.unterschrift { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text); }
.legende { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12px; color: #CFC6B8; }

/* Pakete-Matrix */
.matrix-box { overflow-x: auto; border: 1px solid var(--tinte); border-radius: 4px; background: var(--papier); }
table.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
table.matrix th, table.matrix td { border-left: 1px solid var(--linie); }
table.matrix th:first-child, table.matrix td:first-child { border-left: 0; }
table.matrix thead th { padding: 28px 20px; text-align: left; vertical-align: top; font-weight: 400; }
table.matrix thead th:first-child { padding-left: 24px; vertical-align: bottom; width: 34%; }
table.matrix tbody td { padding: 15px 20px; border-top: 1px solid var(--linie); font-family: var(--mono); font-size: 13px; }
table.matrix tbody td:first-child { font-family: var(--sans); font-size: 15px; padding-left: 24px; }
table.matrix .aktiv { background: var(--sand); }
.mx-kicker { display: block; font-family: var(--mono); font-size: 11px; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; }
.mx-name { display: block; margin-top: 8px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; }
.mx-preis { display: block; margin-top: 10px; font-family: var(--mono); font-size: 20px; font-weight: 500; }
.mx-btn { margin-top: 18px; width: 100%; min-height: 44px; }
.leer { color: #A39A8C; }

.zeilen { border-top: 1px solid var(--tinte); }
.zeilen > div { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.zeilen .mono { font-size: 12px; color: var(--grau); }

/* Ablauf */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.schritt { padding: 28px 28px 28px 0; border-top: 2px solid var(--tinte); display: flex; flex-direction: column; gap: 16px; }
.schritt-kopf { display: flex; align-items: center; gap: 12px; }
.nr { width: 34px; height: 34px; border-radius: 50%; background: var(--tinte); color: var(--kalk); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-child { border-top: 1px solid var(--tinte); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-family: var(--serif); font-size: 25px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--kiefer); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 46em; color: var(--text); line-height: 1.7; }

/* Chat */
.chat { background: var(--tinte-2); border: 1px solid #4A443B; border-radius: 8px; display: flex; flex-direction: column; height: 640px; max-height: 82vh; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .3); }
.chat-kopf { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #3A352F; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--kalk); color: var(--tinte); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: .05em; flex: none; }
.chat-kopf b { display: block; font-weight: 500; font-size: 15px; }
.chat-kopf small { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: #B9AF9F; }
.chat-kopf small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6FB383; }
.fortschritt { height: 2px; background: #3A352F; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--kiefer-hell); transition: width .5s ease; }
.verlauf { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 13px 16px; border-radius: 14px; font-size: 15px; line-height: 1.55; animation: msg .35s ease both; white-space: pre-line; }
.msg.bot { align-self: flex-start; background: #312D28; color: var(--kalk); border-bottom-left-radius: 4px; }
.msg.ich { align-self: flex-end; background: var(--kalk); color: var(--tinte); border-bottom-right-radius: 4px; }
.msg.fehler { background: #4A2A24; }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tippt { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: #312D28; border-radius: 14px; border-bottom-left-radius: 4px; }
.tippt i { width: 6px; height: 6px; border-radius: 50%; background: #B9AF9F; animation: tipp 1s infinite; }
.tippt i:nth-child(2) { animation-delay: .15s; } .tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tipp { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.paketkarte { align-self: flex-start; width: min(100%, 360px); background: var(--papier); color: var(--tinte); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 6px; animation: msg .35s ease both; }
.paketkarte .mono { font-size: 11px; color: var(--grau); text-transform: uppercase; }
.paketkarte b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.paketkarte p { margin: 0; font-size: 14px; color: var(--text); }
.zusammenfassung { align-self: stretch; background: var(--papier); color: var(--tinte); border-radius: 8px; padding: 18px; font-size: 14px; animation: msg .35s ease both; }
.zusammenfassung dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.zusammenfassung dt { font-family: var(--mono); font-size: 11px; color: var(--grau); text-transform: uppercase; padding-top: 3px; }
.zusammenfassung dd { margin: 0; overflow-wrap: anywhere; }
.chat-eingabe { border-top: 1px solid #3A352F; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid #6B6358; background: transparent; color: var(--kalk); font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chip:hover { border-color: var(--kalk); background: #312D28; }
.chip.haupt { background: var(--kalk); color: var(--tinte); border-color: var(--kalk); font-weight: 500; }
.chip.haupt:hover { background: #fff; }
.eingabezeile { display: flex; gap: 8px; }
.eingabezeile input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid #5A534A; border-radius: 6px; background: var(--tinte); color: var(--kalk); font-size: 15px; }
.eingabezeile button { min-height: 48px; min-width: 48px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--kalk); color: var(--tinte); cursor: pointer; font-weight: 600; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #CFC6B8; }
.einwilligung input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--kiefer-hell); }
.einwilligung a { color: var(--kalk); }
.verborgen { display: none !important; }
.bereithalten { border-top: 1px solid #4A443B; }
.bereithalten div { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid #4A443B; font-size: 15px; color: #CFC6B8; }
.bereithalten .mono { font-size: 12px; color: var(--kiefer-hell); }

/* Footer */
.fuss { padding: 64px 0; font-size: 13px; line-height: 1.8; color: var(--grau); }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.fuss .mono { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.fuss a { text-decoration: none; }

/* Formulare (Portal / Admin) */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.feld input, .feld select, .feld textarea { min-height: 46px; padding: 0 14px; border: 1px solid #C9BFB0; border-radius: 4px; background: #fff; font-size: 15px; }
.feld textarea { padding: 12px 14px; min-height: 90px; resize: vertical; }
.dunkel .feld label { color: #B9AF9F; }
.dunkel .feld input { background: var(--tinte); border-color: #5A534A; color: var(--kalk); }
.meldung { padding: 12px 14px; border-radius: 4px; font-size: 14px; }
.meldung.fehler { background: #F6E3DF; color: #7A2A1D; }
.meldung.ok { background: #E1EEE4; color: #1F5A37; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--sand); color: var(--text); }
.pill.neu { background: #F6E9D2; color: #7A4E0E; }
.pill.fertig { background: #E1EEE4; color: #1F5A37; }
.pill.ab { background: #EDE9E3; color: var(--grau-hell); }
