/* Think – eine große Gedankenblase auf Mint, darunter der Zettel für die Idee. */

@font-face {
  font-family: 'Lexend'; src: url(/fonts/lexend-latin.woff2) format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lexend'; src: url(/fonts/lexend-latin-ext.woff2) format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #E3F4F1;
  --card: #FFFFFF;
  --ink: #0F2B2A;
  --ink-soft: #4C6664;
  --line: #BFDCD7;
  --teal: #0E7C7B;
  --teal-deep: #095857;
  --sun: #FFC83D;
  --red: #B4322A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Lexend', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
html[lang=de] [data-only=en], html[lang=en] [data-only=de] { display: none; }

.top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 32px) 0; }
.wordmark { font-weight: 800; font-size: 1.9rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--teal); }
.lang { color: var(--ink-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; padding: 8px 2px; }

.main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
@media (min-width: 900px) { .main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-top: 48px; } .bubble-wrap { position: sticky; top: 32px; } }

/* ─── Die Gedankenblase ─── */
.bubble-wrap { position: relative; padding-bottom: 70px; }
.bubble {
  position: relative; background: var(--card); border-radius: 46px 46px 46px 46px / 40px 40px 40px 40px;
  padding: clamp(26px, 4vw, 40px); box-shadow: 0 6px 0 var(--line);
}
.bubble h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.bubble .sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.0625rem; max-width: 40ch; }
.dot { position: absolute; border-radius: 50%; background: var(--card); box-shadow: 0 4px 0 var(--line); }
.dot-1 { width: 34px; height: 34px; left: 18%; bottom: 26px; }
.dot-2 { width: 18px; height: 18px; left: 11%; bottom: 0; }
.bubble.thanked { background: var(--sun); box-shadow: 0 6px 0 #D9A21E; }

/* ─── Formular ─── */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.idea-form { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; min-width: 0; }
.field > span:first-child, .field legend { font-weight: 700; font-size: .9375rem; }
.field input, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; outline: none; }
.field input { min-height: 50px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: #8AA3A0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: .9375rem; background: #fff; }
.pill input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.count { align-self: flex-end; font-size: .8125rem; color: var(--ink-soft); }
.hint { font-size: .875rem; color: var(--ink-soft); }
.error { color: var(--red); font-weight: 700; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.0625rem; box-shadow: 0 4px 0 var(--teal-deep); align-self: flex-start; transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn:disabled { opacity: .55; cursor: progress; }

.thanks { padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.thanks h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }

/* ─── Fuß und Fenster ─── */
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.link { color: var(--ink-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; padding: 6px 2px; }
dialog { border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(15, 43, 42, .55); }
.doc { margin: auto; width: min(100% - 24px, 680px); max-height: min(100dvh - 24px, 900px); background: #fff; border-radius: 18px; padding: 0; }
.doc article { padding: 30px 24px 34px; }
.doc h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; padding-right: 44px; }
.doc h3 { font-size: 1.0625rem; font-weight: 700; margin: 18px 0 6px; }
.doc p { line-height: 1.6; max-width: 68ch; }
.doc a { color: var(--teal-deep); }
.doc-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 26px; line-height: 1; }
.noscript { padding: 40px; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; } }

/* Platz für den hostwebhub Home-Knopf (unten links), damit die Fußzeile am Handy nicht verdeckt wird */
@media (max-width: 600px) { .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
