/* ============================================================
   Charterangebote-Vergleich — Segelhandbuch
   ============================================================ */

:root {
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;

    --navy-900: #0b1b2e;
    --navy-800: #122840;
    --navy-700: #1a3454;
    --ocean-600: #1a5276;
    --ocean-500: #2874a6;
    --ocean-400: #3498db;
    --ocean-100: #e8f3fb;

    --sand-500: #b8860b;
    --sand-400: #c9a54a;
    --sand-100: #faf6ef;

    --green-600: #0e6655;
    --green-500: #148f77;
    --green-100: #eafaf4;

    --amber-600: #d68910;
    --amber-100: #fef9ee;

    --red-600: #a93226;
    --red-100: #fdedec;

    --slate-800: #2c3e50;
    --slate-700: #374b5c;
    --slate-600: #516171;
    --slate-500: #6b7f8f;
    --slate-400: #8e9daa;
    --slate-300: #b5bfc9;
    --slate-200: #d5dce2;
    --slate-100: #eceff2;
    --slate-50: #f5f7f9;
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(11,27,46,0.06), 0 1px 2px rgba(11,27,46,0.04);
    --shadow-md: 0 4px 8px -1px rgba(11,27,46,0.07), 0 2px 4px -2px rgba(11,27,46,0.04);
    --shadow-lg: 0 10px 20px -4px rgba(11,27,46,0.1), 0 4px 8px -4px rgba(11,27,46,0.05);
    --radius: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.site-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--ocean-600) 100%);
    color: var(--white);
    padding: 2.6rem 1.5rem 2.2rem;
}
.site-header .inner { max-width: 1400px; margin: 0 auto; }
.site-header .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sand-400);
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.site-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 600;
    margin: 0 0 0.6rem;
    line-height: 1.15;
}
.site-header .lede {
    margin: 0;
    max-width: 62ch;
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
}
.trip-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.2rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.trip-facts div { padding: 0.3rem 0; }
.trip-facts dt {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.trip-facts dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    font-size: 0.98rem;
}

/* --- Layout --- */
main { max-width: 1400px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
section { margin-bottom: 3.2rem; }
h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--navy-800);
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
h2 + .section-note {
    margin: 0 0 1.4rem;
    color: var(--slate-600);
    font-size: 0.92rem;
    max-width: 78ch;
}
h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-800);
    margin: 0 0 0.5rem;
}

/* --- Fazit-Kacheln --- */
.verdicts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1rem;
}
.verdict {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-top: 3px solid var(--ocean-500);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-sm);
}
.verdict.win { border-top-color: var(--green-500); }
.verdict.warn { border-top-color: var(--amber-600); }
.verdict.note { border-top-color: var(--sand-500); }
.verdict .label {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 0.45rem;
}
.verdict .headline {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.verdict .price {
    font-weight: 700;
    color: var(--ocean-600);
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}
.verdict p { margin: 0; font-size: 0.88rem; color: var(--slate-600); line-height: 1.55; }

/* --- Tabelle --- */
.table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    margin-bottom: 0.9rem;
    font-size: 0.86rem;
    color: var(--slate-600);
}
.table-tools label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.table-tools .hint { color: var(--slate-400); font-style: italic; }

.table-scroll {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 1040px;
}
table.compare thead th {
    background: var(--navy-800);
    color: var(--white);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.7rem 0.5rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
table.compare thead th.sortable { cursor: pointer; user-select: none; }
table.compare thead th.sortable:hover { background: var(--navy-700); }
table.compare thead th.sortable::after {
    content: '↕';
    opacity: 0.35;
    margin-left: 0.35rem;
    font-size: 0.85em;
}
table.compare thead th.asc::after { content: '↑'; opacity: 1; color: var(--sand-400); }
table.compare thead th.desc::after { content: '↓'; opacity: 1; color: var(--sand-400); }
table.compare th.num, table.compare td.num { text-align: right; }
table.compare tbody td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: top;
}
table.compare tbody tr:hover { background: var(--ocean-100); }
table.compare tbody tr.is-blocked { background: var(--slate-50); color: var(--slate-500); }
table.compare tbody tr.is-blocked:hover { background: #eef1f4; }
table.compare tbody tr.best td:first-child { box-shadow: inset 3px 0 0 var(--green-500); }
table.compare tbody td:nth-child(6) { white-space: nowrap; }
table.compare tbody td:nth-child(1) { min-width: 100px; max-width: 158px; }
.y-name { font-weight: 600; color: var(--navy-800); display: block; }
.y-model { color: var(--slate-500); font-size: 0.94em; }
.total { font-weight: 700; color: var(--ocean-600); white-space: nowrap; }
.strike { color: var(--slate-400); text-decoration: line-through; font-size: 0.92em; }
.discount { color: var(--green-600); font-weight: 600; white-space: nowrap; }
.src-link {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--slate-300);
}
.src-link:hover { color: var(--ocean-500); border-bottom-color: var(--ocean-400); }
tr.is-blocked .src-link { color: var(--slate-500); }

.detail-link {
    color: var(--ocean-500);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.detail-link:hover { text-decoration: underline; }

table.fee-table { min-width: 720px; font-size: 0.82rem; }
table.fee-table thead th { background: var(--slate-700); }
table.fee-table tbody tr:hover { background: var(--slate-50); }
table.fee-table tbody td { padding: 0.55rem 0.6rem; }
table.fee-table tbody td:first-child { font-weight: 600; color: var(--navy-800); white-space: nowrap; min-width: 0; }
table.fee-table tbody td:nth-child(2) { white-space: nowrap; color: var(--slate-600); }
table.fee-table tbody td:nth-child(3) { font-weight: 700; color: var(--ocean-600); white-space: nowrap; }
table.fee-table .unspec { color: var(--amber-600); font-style: italic; }

table.blocked-table { min-width: 640px; font-size: 0.83rem; }
table.blocked-table thead th { background: var(--slate-600); }
table.blocked-table tbody td { color: var(--slate-600); }
table.blocked-table tbody tr:hover { background: var(--slate-50); }
table.blocked-table .y-name { color: var(--slate-700); }
table.blocked-table .total { color: var(--slate-600); }

/* --- Badges --- */
.badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.15rem 0.38rem;
    border-radius: 3px;
    white-space: nowrap;
}
.badge.offer { background: var(--green-100); color: var(--green-600); }
.badge.list { background: var(--sand-100); color: var(--sand-500); }
.badge.free { background: var(--green-100); color: var(--green-600); }
.badge.held { background: var(--ocean-100); color: var(--ocean-600); }
.badge.verified { background: var(--green-100); color: var(--green-600); border: 1px solid var(--green-500); }
.badge.sails { background: var(--sand-100); color: var(--sand-500); border: 1px solid var(--sand-400); }
.badge.solar { background: #fff4d6; color: #9a6b00; border: 1px solid #e0b64a; }
.badge.rating-good { background: var(--green-100); color: var(--green-600); border: 1px solid var(--green-500); }
.badge.rating-weak { background: var(--red-100); color: var(--red-600); border: 1px solid var(--red-600); }
.badge.rating-thin { background: var(--slate-100); color: var(--slate-500); border: 1px solid var(--slate-300); }
.badge.flag { background: var(--amber-100); color: var(--amber-600); border: 1px solid var(--amber-600); }
.badge.flag-good { background: var(--green-100); color: var(--green-600); border: 1px solid var(--green-500); }
.badge.own-good { background: var(--navy-800); color: var(--white); border: 1px solid var(--navy-800); }
.badge.own-weak { background: var(--red-600); color: var(--white); border: 1px solid var(--red-600); }
.rating-weak-txt { color: var(--red-600); font-weight: 700; }
table.crit-table { min-width: 760px; font-size: 0.86rem; }
table.crit-table thead th { background: var(--ocean-600); }
table.crit-table thead th:not(:first-child):not(:nth-child(2)) { text-align: center; }
table.crit-table tbody td { padding: 0.6rem 0.6rem; text-align: center; font-weight: 600; }
table.crit-table tbody td:first-child { text-align: left; font-weight: 400; min-width: 0; max-width: none; white-space: nowrap; }
table.crit-table tbody td:first-child a { font-weight: 700; }
table.crit-table tbody td:nth-child(2) { text-align: right; color: var(--ocean-600); font-weight: 700; white-space: nowrap; }
table.crit-table tbody tr:hover { background: var(--ocean-100); }
table.crit-table .yes { color: var(--green-600); font-weight: 700; }
table.crit-table .no  { color: var(--slate-300); font-weight: 700; }
table.crit-table .unk { color: var(--amber-600); font-style: italic; font-weight: 500; font-size: 0.9em; }
table.crit-table .crit-sub { display: block; font-weight: 400; font-size: 0.78em; color: var(--slate-500); line-height: 1.35; }
table.crit-table .y-model { display: block; font-weight: 400; }

table.comfort-table { min-width: 620px; font-size: 0.83rem; }
table.comfort-table thead th { background: var(--slate-700); }
table.comfort-table tbody td { padding: 0.5rem 0.6rem; text-align: center; }
table.comfort-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--navy-800); white-space: nowrap; min-width: 0; }
table.comfort-table tbody tr:hover { background: var(--slate-50); }
table.comfort-table .yes { color: var(--green-600); font-weight: 700; }
table.comfort-table .no { color: var(--slate-300); }
table.comfort-table .unk { color: var(--amber-600); font-style: italic; font-size: 0.9em; }
.sail-new { color: var(--green-600); font-weight: 700; }
.badge.blocked { background: var(--red-100); color: var(--red-600); }
.badge.dupe { background: var(--ocean-100); color: var(--ocean-600); }
.badge.agency-jojo { background: var(--ocean-100); color: var(--ocean-600); }
.badge.agency-cb { background: #f3ecf7; color: #7d3c98; }

/* --- Detailkarten --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; }
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 1rem;
}
.card:target { border-color: var(--ocean-400); box-shadow: var(--shadow-lg); }
.card-head {
    background: var(--navy-800);
    color: var(--white);
    padding: 0.95rem 1.1rem;
}
.card-head.cb { background: #533b5e; }
.card-head h3 { color: var(--white); margin: 0 0 0.1rem; font-size: 1.25rem; }
.card-head .sub { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.card-head .badges { margin-top: 0.5rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.card-body { padding: 1.1rem; flex: 1; }
.card-body h4 {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin: 1.2rem 0 0.5rem;
    font-weight: 700;
}
.card-body h4:first-child { margin-top: 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; font-size: 0.83rem; }
.kv dt { color: var(--slate-500); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }

table.mini { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.mini td { padding: 0.3rem 0; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
table.mini td:last-child { text-align: right; white-space: nowrap; padding-left: 0.6rem; font-weight: 500; }
table.mini tr.sum td { border-top: 2px solid var(--slate-300); border-bottom: none; font-weight: 700; padding-top: 0.5rem; color: var(--ocean-600); }
table.mini .muted { color: var(--slate-500); font-weight: 400; }

.taglist { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
    font-size: 0.72rem;
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 0.16rem 0.5rem;
    border-radius: 3px;
}
.tag.plus { background: var(--green-100); color: var(--green-600); font-weight: 600; }

.card-foot {
    padding: 0.8rem 1.1rem;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
}
.card-foot a {
    color: var(--ocean-500);
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    word-break: break-word;
}
.card-foot a:hover { text-decoration: underline; }

/* --- Boxen --- */
.note-box {
    border-left: 4px solid var(--ocean-500);
    background: var(--ocean-100);
    padding: 1rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    max-width: 92ch;
}
.note-box.warn { border-left-color: var(--amber-600); background: var(--amber-100); }
.note-box.good { border-left-color: var(--green-500); background: var(--green-100); }
.note-box p { margin: 0.4rem 0 0; }
.note-box p:first-child { margin-top: 0; }
.note-box strong { color: var(--navy-800); }
.note-box ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.note-box li { margin-bottom: 0.3rem; }

/* --- Footer --- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.6);
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
}
.site-footer .inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
}
.site-footer a { color: var(--sand-400); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    main { padding: 1.8rem 1rem 3rem; }
    .trip-facts { gap: 0 1.4rem; }
    .kv dd { text-align: left; }
    .kv { grid-template-columns: 1fr; gap: 0 0; }
    .kv dt { margin-top: 0.4rem; font-size: 0.75rem; }
}

/* --- Print --- */
@media print {
    body { background: var(--white); font-size: 10pt; }
    .site-header { background: none; color: var(--navy-900); border-bottom: 2px solid var(--navy-800); padding: 0 0 1rem; }
    .site-header h1, .site-header .lede, .trip-facts dd { color: var(--navy-900); }
    .site-header .eyebrow, .trip-facts dt { color: var(--slate-600); }
    .table-tools, .site-footer, .card-foot { display: none; }
    table.compare { min-width: 0; font-size: 8.5pt; }
    table.compare thead th { background: var(--slate-100); color: var(--navy-900); }
    .card, .verdict, .table-scroll { box-shadow: none; break-inside: avoid; }
    .card-head { background: var(--slate-100) !important; color: var(--navy-900); }
    .card-head h3, .card-head .sub { color: var(--navy-900); }
}
