/* Reiseblogs.de 2026 – single stylesheet, no external resources */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2a30;
  --muted: #5d6b73;
  --line: #e2e0d8;
  --brand: #0e7c86;
  --brand-dark: #0a5c64;
  --accent: #e8743b;
  --danger: #b3261e;
  --ok-bg: #e5f4ea;
  --err-bg: #fbe9e7;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; font-family: var(--font); line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; margin-top: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.section { padding-top: 32px; padding-bottom: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.hint, small { color: var(--muted); font-size: .9rem; }
small { display: block; }

/* header / navigation (no JS: checkbox toggle) */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand img { display: block; height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 4px; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.cta { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 999px; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { display: none; }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--brand); border-radius: 6px; }
@media (max-width: 760px) {
  .menu-button { display: block; cursor: pointer; padding: 10px; }
  .menu-button span:not(.sr) { display: block; width: 24px; height: 3px; background: var(--text); margin: 4px 0; border-radius: 2px; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 10px; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
}

/* hero + search */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 64px 0 56px; min-height: 440px; background: #0a5c64; isolation: isolate; }
.hero .wrap { position: relative; z-index: 3; }
.hero h1 { font-size: 2.5rem; margin-bottom: .3em; text-shadow: 0 2px 14px rgba(0, 40, 50, .55); }
.hero h1 span { color: #ffd2b8; }
.hero .lead { font-size: 1.15rem; margin: 0 0 24px; text-shadow: 0 1px 8px rgba(0, 40, 50, .6); }
.hero .hint { color: #fff; margin-top: 12px; text-shadow: 0 1px 6px rgba(0, 40, 50, .6); }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 13px 16px; font-size: 1.05rem; border: 2px solid transparent; border-radius: var(--radius); background: #fff; color: #1f2a30; box-shadow: 0 6px 24px rgba(0, 40, 50, .25); }
.wrap > .search-form { margin: 0 0 18px; max-width: none; }
.wrap > .search-form input[type=search] { border-color: var(--line); box-shadow: none; }
.hero .eyebrow { position: relative; height: 1.6em; margin: 0 0 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; text-shadow: 0 1px 3px rgba(0, 30, 40, .9), 0 0 12px rgba(0, 30, 40, .7); }
.eyebrow span { position: absolute; left: 0; right: 0; opacity: 0; animation: word 15s infinite; }
.eyebrow span:nth-child(2) { animation-delay: 5s; }
.eyebrow span:nth-child(3) { animation-delay: 10s; }

/* sky: photo slideshow, drifting clouds, plane (decorative, CSS only) */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8, 70, 90, .55) 0%, rgba(8, 70, 90, .25) 45%, rgba(8, 70, 90, .55) 100%); }
.slide { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; will-change: transform, opacity; }
.slide-0 { background-image: url(/assets/img/hero-kapstadt.jpg); }
.slide-1 { background-image: url(/assets/img/hero-jordanien.jpg); }
.sky-home .slide { animation: slide 28s linear infinite; }
.sky-home .slide-1 { animation-delay: -14s; }
.sky-banner .slide { opacity: 1; animation: kenburns 40s ease-in-out infinite alternate; }
.cloud { position: absolute; z-index: 1; display: block; width: 140px; height: 44px; border-radius: 44px; background: #fff; opacity: .8; left: 0; animation: drift 70s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 58px; height: 58px; top: -26px; left: 24px; }
.cloud::after { width: 76px; height: 76px; top: -36px; right: 22px; }
.c1 { top: 12%; animation-duration: 90s; animation-delay: -30s; transform: scale(1.1); }
.c2 { top: 52%; opacity: .55; animation-duration: 120s; animation-delay: -80s; transform: scale(.7); }
.c3 { top: 30%; opacity: .65; animation-duration: 75s; animation-delay: -10s; transform: scale(.85); }
.flight { position: absolute; z-index: 1; left: 0; top: 22%; display: flex; align-items: center; animation: fly 34s linear infinite; }
.flight .trail { width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85)); }
.plane { width: 54px; height: 22px; fill: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.sky-banner .flight { top: 34%; animation-duration: 26s; }
.sky-banner .c2 { top: 62%; }

/* inner page banner */
.page-banner { position: relative; height: 130px; background: #0a5c64; overflow: hidden; }
@media (max-width: 760px) { .page-banner { height: 90px; } .hero { padding: 44px 0 40px; min-height: 0; } .hero h1 { font-size: 1.9rem; } }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-secondary { background: #4b5b63; }
.btn-danger { background: var(--danger); }
.hero .btn { background: var(--accent); }
button.linklike { background: none; border: 0; padding: 6px 4px; font: inherit; color: var(--text); cursor: pointer; }
button.linklike:hover { color: var(--brand); }
form.inline { display: inline; margin: 0; }

/* teasers */
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 12px; margin-top: 16px; }
.teaser { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.teaser img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.teaser:hover img { transform: scale(1.05); }
.teaser span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 700; font-size: 1.15rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.teaser.wide { grid-column: span 2; }
.teaser.tall { grid-row: span 2; }
@media (max-width: 760px) {
  .teasers { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .teaser.tall { grid-row: span 1; }
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.card-body { min-width: 0; }
.card-body h3 a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { margin: .3em 0; }
.slogan { color: var(--muted); font-style: italic; }
.card-actions { margin-top: .8em !important; }
.tags { list-style: none; padding: 0; margin: .5em 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; background: rgba(14, 124, 134, .1); color: var(--brand-dark); text-decoration: none; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.tags a:hover { background: var(--brand); color: #fff; }
.count { color: var(--muted); }
.cta-box { text-align: center; }

/* detail page */
.detail-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.profile { border-radius: 12px; object-fit: cover; display: block; }
.prose { max-width: 70ch; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.social { list-style: none; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }

/* prose pages */
.page { max-width: 760px; }
.page h2 { margin-top: 1.8em; }
.page code { background: rgba(127, 127, 127, .15); padding: 2px 5px; border-radius: 4px; font-size: .85em; overflow-wrap: anywhere; display: inline-block; }

/* forms */
.form { max-width: 640px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input:not([type]), .field textarea, .field select, .form input[type=text], .form input:not([type]), .form select {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text);
}
.field input:focus, .field textarea:focus, .search-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.error { display: block; color: var(--danger); font-size: .9rem; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: .35em; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; }
.actions { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }

.notice { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.notice-ok { background: var(--ok-bg); }
.notice-error { background: var(--err-bg); color: var(--text); }

/* pagination, tabs, tables */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.pager a, .pager .current { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--surface); }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { white-space: nowrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }

/* ---- animation ---- */
@keyframes slide {
  0%   { opacity: 0; transform: scale(1) translate3d(0, 0, 0); }
  8%   { opacity: 1; }
  50%  { opacity: 1; }
  58%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes drift { from { transform: translateX(-220px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes fly {
  0%   { transform: translate(-260px, 40px) rotate(-5deg); }
  50%  { transform: translate(50vw, -6px) rotate(-3deg); }
  100% { transform: translate(calc(100vw + 120px), -50px) rotate(-6deg); }
}
@keyframes word { 0% { opacity: 0; transform: translateY(8px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 82%, 100% { box-shadow: 0 0 0 0 rgba(232, 116, 59, 0); } 90% { box-shadow: 0 0 0 10px rgba(232, 116, 59, .28); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg) scale(1.04); } 75% { transform: rotate(3deg) scale(1.04); } }

.hero h1, .hero .lead, .hero .search-form, .hero .hint { animation: fadeUp .8s both; }
.hero .lead { animation-delay: .15s; }
.hero .search-form { animation-delay: .3s; }
.hero .hint { animation-delay: .5s; }
.main-nav a.cta { animation: pulse 6s 2s infinite; }
.main-nav a.cta:hover { animation: none; }
.brand img { transition: transform .3s; }
.brand:hover img { animation: wiggle .6s; }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14, 124, 134, .35); }
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(14, 90, 100, .16); border-color: var(--brand); }
.teaser { transition: transform .3s, box-shadow .3s; }
.teaser:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.teaser span { transition: padding .3s; }
.teaser:hover span { padding-bottom: 20px; }
.tags a { transition: background .2s, color .2s, transform .2s; }
.tags a:hover { transform: translateY(-1px); }
.teasers .teaser, .cards .card, .cta-box { animation: fadeUp .7s both; }
.teasers .teaser:nth-child(2), .cards .card:nth-child(2) { animation-delay: .08s; }
.teasers .teaser:nth-child(3), .cards .card:nth-child(3) { animation-delay: .16s; }
.teasers .teaser:nth-child(4), .cards .card:nth-child(4) { animation-delay: .24s; }
.teasers .teaser:nth-child(5), .cards .card:nth-child(n+5) { animation-delay: .32s; }
@supports (animation-timeline: view()) {
  .teasers .teaser, .cards .card, .cta-box, .section > h2 { animation: fadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; animation-delay: 0s !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky-home .slide-0 { opacity: 1; }
  .cloud, .flight { display: none; }
  .eyebrow span:first-child { opacity: 1; }
}

/* long URLs and words must never widen the page (mobile) */
.prose, .card-body, .detail h1, .slogan, .notice, .page, .center, .table td { overflow-wrap: anywhere; }
