/* sunny site up – Farben und Maße wie die bisherige Seite (Tailwind-Palette) */
:root {
  --yellow-50: #fefce8;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 0.5rem;
  --container: 72rem;
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--gray-900);
  background: #fff;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 3rem; height: 3rem; color: var(--yellow-500); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--gray-900); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { left: 0.5rem; }
:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; font-size: 1.125rem; }
.brand img { width: 2rem; height: 2rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--gray-900); }
.site-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--gray-700); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gray-900); text-decoration: underline; text-decoration-color: var(--yellow-400); text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 4rem; background: #fff; border-bottom: 1px solid var(--gray-200); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; }
  .site-nav a { display: block; padding: 0.75rem 0; }
}

/* Hero wie bisher: Speicherstadt dezent im Hintergrund, Verlauf Gelb → Weiß */
.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, var(--yellow-50), #fff);
  text-align: center;
  padding: 4rem 0 6rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("hamburg.jpg") center / cover no-repeat;
  opacity: 0.1;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo { width: 8rem; height: 8rem; margin: 0 auto 1.5rem; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 2rem; }
.hero .lead { max-width: 42rem; margin: 0 auto 2rem; font-size: 1.125rem; color: var(--gray-700); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.scroll-hint { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; justify-content: center; color: var(--gray-500); animation: bounce 1s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } html { scroll-behavior: auto; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 0.75rem 2rem; border-radius: 9999px; border: 2px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-primary { background: var(--yellow-400); color: var(--gray-900); }
.btn-primary:hover { background: var(--yellow-500); }
.btn-secondary { background: #fff; color: var(--gray-900); border-color: var(--gray-200); }
.btn-secondary:hover { border-color: var(--yellow-400); }

/* Abschnitte */
.section { padding: 5rem 0; }
.section-alt { background: var(--yellow-50); }
.section-gray { background: var(--gray-50); }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 1rem; }
.section-intro { text-align: center; color: var(--gray-600); max-width: 42rem; margin: 0 auto 3.5rem; }

.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--gray-50); padding: 2rem; border-radius: var(--radius);
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.section-gray .card, .section-alt .card { background: #fff; }
.card .icon-lg { margin: 0 auto 1.5rem; }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.card p { color: var(--gray-600); text-align: center; }
.card.featured { background: var(--yellow-50); outline: 2px solid var(--yellow-400); }
.card ul { color: var(--gray-600); padding-left: 1.2rem; margin: 1rem 0 0; }
.card.left h3, .card.left p { text-align: left; }
.card.left .icon-lg { margin: 0 0 1.25rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: var(--yellow-400); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.steps p { color: var(--gray-600); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--gray-200); border-radius: 9999px; padding: 0.35rem 0.9rem; font-size: 0.95rem; color: var(--gray-700); }

.contact-grid { max-width: 56rem; margin: 0 auto; }
.contact-item { text-align: center; color: var(--gray-700); }
.contact-item .icon { width: 2rem; height: 2rem; color: var(--yellow-500); margin: 0 auto 1rem; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* App-Karten */
.app-card { display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--gray-200); border-radius: 1rem; padding: 1.5rem; }
.app-card header { display: flex; gap: 1rem; align-items: center; }
.app-icon { width: 4rem; height: 4rem; border-radius: 22%; background: var(--yellow-400); display: flex; align-items: center; justify-content: center; flex: none; }
.app-icon .icon { width: 2rem; height: 2rem; }
.app-card h3 { font-size: 1.25rem; }
.app-card .meta { color: var(--gray-500); font-size: 0.95rem; }
.app-card p { color: var(--gray-600); }
.app-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: auto; font-size: 0.95rem; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 9999px; background: var(--gray-200); color: var(--gray-700); }

/* Rechtstexte und Unterseiten */
.page-head { background: linear-gradient(to bottom, var(--yellow-50), #fff); padding: 3.5rem 0 2rem; }
.page-head h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); font-weight: 700; margin-bottom: 0.5rem; }
.page-head p { color: var(--gray-600); }
.prose { padding: 1rem 0 5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol, .prose address { margin: 0 0 1rem; color: var(--gray-700); }
.prose address { font-style: normal; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--gray-900); text-decoration-color: var(--yellow-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--gray-200); }
.prose th { background: var(--gray-50); }
.table-wrap { overflow-x: auto; }
.note { background: var(--yellow-50); border-left: 4px solid var(--yellow-400); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.updated { color: var(--gray-500); font-size: 0.95rem; }
details { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; background: #fff; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.6rem; }
details p:last-child { margin-bottom: 0; }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
mark.todo { background: #fde68a; color: var(--gray-900); padding: 0 0.25rem; border-radius: 0.25rem; }

/* Fußzeile */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--gray-400); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer-brand img { width: 2rem; height: 2rem; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 1.5rem; text-align: center; color: #fff; }
