/* Open Sans lokal aus conf/fonts/ – kein externer Request */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/opensans-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/opensans-semibold.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/opensans-bold.woff2') format('woff2');
}

:root {
    --black:       #00181b;
    --white:       #ffffff;
    --orange:      #ee7203;
    --orange-lt:   #ff8c1f;
    --offwhite:    #f7f8fa;
    --light:       #f0f2f5;
    --border:      #dde1e7;
    --border-lt:   #eaecf0;
    --text:        #00181b;
    --text-mid:    #3a4a4c;
    --text-muted:  #7a8e90;
    --sh-xs:       0 1px 3px rgba(0,24,27,.07);
    --sh-sm:       0 2px 10px rgba(0,24,27,.09);
    --r:           4px;
    --r-lg:        8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--offwhite);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    position: fixed; top: 10px; left: 10px;
    background: var(--orange); color: var(--white);
    padding: 8px 16px; border-radius: var(--r);
    font-weight: 700; z-index: 9999;
}

/* Header */
#site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; transition: opacity .2s; }
.site-logo:hover { opacity: .8; }
.site-logo img { height: 50px; width: auto; }

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: var(--text-muted);
    flex: 1;
    justify-content: flex-end;
}
.header-breadcrumb a { color: var(--text-mid); transition: color .18s; }
.header-breadcrumb a:hover { color: var(--orange); }
.header-breadcrumb .bc-sep { opacity: .4; font-size: .75rem; }
.header-breadcrumb .bc-active { color: var(--orange); font-weight: 600; }

.header-stripe { height: 3px; background: var(--orange); }

/* Hero */
.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 40px 34px;
}
.hero-inner { max-width: 1240px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .71rem; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 18px; height: 2px;
    background: var(--orange); border-radius: 2px;
}

.hero-title { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; color: var(--text); line-height: 1.15; }
.hero-sub   { margin-top: 8px; color: var(--text-mid); font-size: .9rem; max-width: 520px; }

/* Main */
#main-content {
    flex: 1;
    max-width: 1240px; width: 100%;
    margin: 0 auto;
    padding: 36px 40px 80px;
}

.docs-summary {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 26px; padding: 11px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    font-size: .83rem; color: var(--text-mid);
}
.docs-summary strong { color: var(--text); }
.summary-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

/* Language sections */
.lang-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--sh-xs);
    transition: box-shadow .2s;
}
.lang-section:hover { box-shadow: var(--sh-sm); }

.lang-toggle {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 15px 22px;
    background: var(--light);
    border: none; border-bottom: 1px solid var(--border-lt);
    cursor: pointer; text-align: left;
    transition: background .15s;
}
.lang-toggle:hover { background: #e6e9ed; }

.lang-flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 24px;
    background: var(--black); color: var(--white);
    font-size: .65rem; font-weight: 700; letter-spacing: .06em;
    border-radius: 3px; flex-shrink: 0; line-height: 1;
}
.lang-name { font-size: 1rem; font-weight: 700; color: var(--text); flex: 1; }
.lang-pill {
    font-size: .69rem; font-weight: 700;
    background: var(--orange); color: var(--white);
    padding: 2px 10px; border-radius: 20px; flex-shrink: 0;
}
.lang-chevron {
    width: 16px; height: 16px;
    color: var(--text-muted); flex-shrink: 0;
    transition: transform .22s;
}
.lang-section.is-open .lang-chevron { transform: rotate(180deg); }

.file-list { display: none; }
.lang-section.is-open .file-list { display: block; animation: slideDown .18s ease-out; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* File rows */
.file-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border-lt);
    transition: background .1s;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: #fafbfc; }

.file-icon-wrap {
    width: 36px; height: 36px;
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.file-icon-wrap svg { width: 18px; height: 18px; }

.type-pdf   { background: #fff0ef; color: #c0392b; }
.type-img   { background: #eef6ff; color: #2c6fad; }
.type-doc   { background: #edf2ff; color: #3b5bdb; }
.type-xls   { background: #ebfbee; color: #2f9e44; }
.type-zip   { background: #fff4ea; color: var(--orange); }
.type-other { background: var(--light); color: var(--text-mid); }

.file-name { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.file-ext  { font-size: .71rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.file-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 15px; border-radius: var(--r);
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    white-space: nowrap; border: none; cursor: pointer; text-decoration: none;
    transition: transform .12s, opacity .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.btn:active { transform: none; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-view { background: var(--white); color: var(--text-mid); border: 1px solid var(--border); }
.btn-view:hover { border-color: #b0b8c8; box-shadow: var(--sh-xs); }

.btn-dl { background: var(--orange); color: var(--white); box-shadow: 0 1px 5px rgba(238,114,3,.28); }
.btn-dl:hover { background: var(--orange-lt); }

/* Empty state */
.empty-state {
    text-align: center; padding: 60px 32px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.empty-state svg { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .28; }
.empty-state p { font-size: .9rem; }

/* Footer */
#site-footer {
    background: var(--black);
    border-top: 3px solid var(--orange);
}
.footer-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.32); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.42); transition: color .18s; }
.footer-legal a:hover { color: var(--orange-lt); }
.footer-legal .sep { color: rgba(255,255,255,.15); font-size: .7rem; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { padding: 0 20px; height: 66px; }
    .header-breadcrumb { font-size: .78rem; gap: 5px; }
    .page-hero    { padding: 28px 20px 22px; }
    #main-content { padding: 24px 20px 56px; }
    .file-row { grid-template-columns: auto 1fr; }
    .file-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; }
    .footer-inner { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
    .site-logo img { height: 40px; }
    .header-breadcrumb .bc-home { display: none; }
    .file-row    { padding: 11px 16px; gap: 10px; }
    .lang-toggle { padding: 12px 16px; }
    .docs-summary { flex-wrap: wrap; font-size: .8rem; }
    .btn { padding: 6px 12px; font-size: .75rem; }
}
