/* styles.css - Checklist of Austrian Bryophytes */
html { scroll-behavior: smooth; }

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* Header mit Logo + durchgehender Border */
.header {
    display: flex;
    align-items: baseline;     /* BASELINE: Logo & Text UNTERE Kante gleich */
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 3px solid #007cba;  /* DURCHGEHEND unter allem */
    gap: 20px;                     /* Abstand H1-Logo */
}

.header h1 {
    margin: 0;
    flex: 1;
    font-size: clamp(1.8em, 5vw, 2.5em);
    line-height: 1.1;
    color: #333;
}

.logo {
    height: 5.5em;             /* GENAU H1-Zeilenhöhe */
    max-height: 300px;          /* Obergrenze */
    width: auto;
    flex-shrink: 0;            /* Logo verkleinert sich NIEMALS */
}

.name { font-style: italic; font-weight: bold; }

#stats {
    margin: 20px 0;
    padding: 20px;
    background: #f0f8ff;
    border-left: 5px solid #007cba;
    border-radius: 0 4px 4px 0;
}

#jump-menu {
	margin: 25px auto 20px auto;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	text-align: center;
	line-height: 1.9;
}

#jump-menu a {
    margin: 0 4px;
    padding: 2px 6px;
    color: #007cba;
    border: 1px solid #007cba;
    border-radius: 3px;
    font-weight: bold;
}

#jump-menu a:hover { background: #007cba; color: white; }

h3[id^="moos-"] {
    color: #007cba;
    scroll-margin-top: 100px;  /* Platz für sticky Jump */
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 1.4em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

th {
    background: #f2f2f2;
    font-weight: bold;
    position: sticky;
    top: 0;
}

tr:nth-child(even) { background: #f9f9f9; }
tr:hover { background: #e6f3ff; }

td strong { font-weight: bold; }  /* Taxon fett */

.synonyms {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-top: 4px;
}

.loading {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 50px;
}

.error-message {
    color: red;
    padding: 20px;
    background: #ffe6e6;
    border: 1px solid red;
    border-radius: 4px;
    margin: 20px 0;
}

#kontakt { border-bottom: 3px solid #007cba; }

a { color: #007cba; text-decoration: none; }
a:hover { text-decoration: underline; }

.legal {
    text-align: center;
    border-top-color: #a0a0a0;
    border-top-style: solid;
    border-top-width: 1px;
    margin-top: 3em;
    margin-top: 3em;
    padding-top: 0.5em;
    font-size: small;
    color: #333333;

/* Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    table, th, td { font-size: 12px; padding: 8px 4px; }
    .header { flex-direction: column; align-items: flex-start; }
    .logo {  height: 1.4em; margin-left: 0; margin-top: 10px; height: 60px; }
}
