/* ============================================================
   webcam-sks.de — eigenes, self-hosted Stylesheet
   Farbpalette aus Bestandsseite:
   Blau #1569ae · Hellblau #4a95db · Gelb #fdd247 · Text #545454
   ============================================================ */

/* ---------- Schriften (lokal, self-hosted) ---------- */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/comfortaa-v12-latin-regular.woff2') format('woff2'),
         url('../fonts/comfortaa-v12-latin-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v15-latin-regular.woff2') format('woff2'),
         url('../fonts/open-sans-v15-latin-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-v18-latin-regular.woff2') format('woff2'),
         url('../fonts/roboto-v18-latin-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../fonts/roboto-condensed-v16-latin-700.woff2') format('woff2'),
         url('../fonts/roboto-condensed-v16-latin-700.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --blue:        #1569ae;
    --blue-light:  #4a95db;
    --yellow:      #fdd247;
    --text:        #545454;
    --border:      #dbdbdb;
    --bg:          #f4f6f8;
    --maxw:        1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Comfortaa', 'Open Sans', sans-serif;
    color: var(--blue);
    line-height: 1.25;
    margin: 0 0 .6em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }

a { color: var(--blue); }
a:hover { color: var(--blue-light); }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--yellow); color: #000; padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--blue); }
.header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: .8rem 1rem;
    display: flex; align-items: center;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--text); }
.brand-logo { width: 70px; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Comfortaa', sans-serif; font-size: 1.5rem; color: var(--blue); font-weight: 700;
}
.brand-tagline { font-size: .85rem; color: var(--text); }

/* ---------- Navigation ---------- */
.main-nav { background: var(--blue); }
.nav-list {
    max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none;
    display: flex; flex-wrap: wrap;
}
.nav-list a {
    display: block; padding: .8rem 1.1rem;
    color: #fff; text-decoration: none;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif; font-weight: 700;
    text-transform: uppercase; font-size: .92rem; letter-spacing: .02em;
}
.nav-list a:hover { background: var(--blue-light); color: #fff; }
.nav-list a.active { background: var(--yellow); color: #1a1a1a; }

.nav-toggle {
    display: none;
    width: 100%; padding: .8rem 1rem;
    background: var(--blue); color: #fff; border: 0;
    font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
    text-transform: uppercase; font-size: 1rem; cursor: pointer; text-align: left;
}

/* ---------- Inhalt ---------- */
.site-main {
    max-width: var(--maxw); margin: 1.5rem auto; padding: 0 1rem;
}
.card {
    background: #fff; border: 1px solid var(--border); border-radius: 6px;
    padding: 1.5rem; margin-bottom: 1.5rem;
}

/* ---------- Webcam ---------- */
.webcam-wrap { text-align: center; }
.webcam-frame {
    display: inline-block; padding: 8px; background: #fff;
    border: 1px solid var(--border); border-radius: 6px; max-width: 100%;
}
.webcam-frame img { display: block; max-width: 100%; height: auto; }
.webcam-meta { font-size: .85rem; color: var(--text); margin-top: .5rem; }

/* ---------- Sponsoren ---------- */
.sponsor-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sponsor-card {
    border: 1px solid var(--border); border-radius: 6px; padding: 1rem;
    display: flex; gap: 1rem; align-items: center; background: #fff;
}
.sponsor-card img { width: 80px; height: 80px; object-fit: contain; flex: 0 0 auto; }
.sponsor-card .s-name { font-weight: 700; color: var(--blue); text-decoration: none; }
.sponsor-card .s-name:hover { text-decoration: underline; }
.sponsor-card .s-desc { font-size: .9rem; margin: .2rem 0 0; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 700; margin: .8rem 0 .3rem; }
input[type=text], input[type=email], input[type=url], input[type=number],
input[type=password], textarea, select {
    width: 100%; padding: .6rem; border: 1px solid var(--border); border-radius: 4px;
    font: inherit; color: var(--text); background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.btn {
    display: inline-block; cursor: pointer;
    background: var(--blue); color: #fff; border: 0; border-radius: 4px;
    padding: .65rem 1.3rem; font: inherit; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--blue-light); color: #fff; }
.btn-danger { background: #b3261e; }
.btn-danger:hover { background: #d2362d; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #828a96; }

.notice { padding: .8rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.notice-ok    { background: #e6f4ea; border: 1px solid #a6d8b4; color: #1e6b36; }
.notice-error { background: #fdecea; border: 1px solid #f1b0ab; color: #97231c; }

/* ---------- Tabellen (Admin) ---------- */
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td {
    text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table.list th { background: var(--blue); color: #fff; font-family: 'Roboto Condensed', sans-serif; }
table.list tr:hover td { background: #f0f6fc; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-on  { background: #e6f4ea; color: #1e6b36; }
.badge-off { background: #eee; color: #777; }

.admin-bar {
    background: #11324d; color: #fff; padding: .6rem 1rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.admin-bar a { color: #cfe3f5; }
.toolbar { margin-bottom: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #11324d; color: #cfe0ef; margin-top: 2rem; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1rem;
    display: flex; flex-direction: column; gap: .4rem; align-items: center; text-align: center;
}
.footer-nav a { color: #fff; margin: 0 .5rem; }
.footer-copy { font-size: .85rem; color: #9bb5cf; margin: 0; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-list { display: none; flex-direction: column; }
    .nav-list.open { display: flex; }
    .nav-list a { border-top: 1px solid rgba(255,255,255,.15); }
    .header-inner { justify-content: center; text-align: center; }
}
