/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ### */

* {
    box-sizing: border-box;
}

html {
    font-family: "Roboto", sans-serif;
}

h1 {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}

/* =========================
   Basis
   ========================= */

main {
    font-family: "Roboto", sans-serif;
    max-width: 780px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #111827;
}

sub {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   Top-Level Raum-Box
   ========================= */

main > ul > li {
    margin-bottom: 0.75rem;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Raumcode */
main > ul > li > span.room-code {
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
}

/* =========================
   Dropdown / Stundenliste
   ========================= */

.dropdown {
    display: none;
    margin-top: 0.75rem;
}

.dropdown.open {
    display: block;
}

/* =========================
   Stundenblock (bleibt perfekt wie vorher)
   ========================= */

.schedule-row {
    display: flex;
    align-items: center;

    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid #e5e7eb; /* volle Breite, bündig mit Raum-Box */
    font-size: 0.95rem;
}

/* letzte Linie aus */
.schedule-row:last-child {
    border-bottom: none;
}

/* Spalten */
.schedule-row .hour {
    flex: 0 0 3.75rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.schedule-row .class {
    flex: 0 0 4.25rem;
}

.schedule-row .subject {
    flex: 1;
}

.schedule-row .teacher {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
    padding-right: 0.5rem;
}

input {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
	margin: 0 0 0.75rem;
}


/* =========================
   Optional: Touchgeräte
   ========================= */

@media (pointer: coarse) {
    .schedule-row {
        padding: 1rem 0.25rem;
    }

    main > ul > li {
        padding: 1rem;
    }
}
