/* Colours of the counter page in base.css, use with var(--name) */
html {
    --background: #ffffff;
    --text-main: #000000;
    --text-muted: #606060;
    --button-line: #d6d6d6;
    --accent-logo: #ae1f2e;
    --accent-soft: #ebc7cb;
}

/* Hyperreadable, normal weight */
@font-face {
    font-family: Hyperreadable;
    src: url("/Hyperreadable-Regular.ttf");
    font-weight: 400;
    font-display: swap;
}

/* Hyperreadable, bold weight */
@font-face {
    font-family: Hyperreadable;
    src: url("/Hyperreadable-SemiBold.ttf");
    font-weight: 600;
    font-display: swap;
}

/* Sizes include padding and border */
* {
    box-sizing: border-box;
}

/* Whole page black on white */
body {
    margin: 0;
    font-family: Hyperreadable, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--background);
}

/* Top bar: logo and links in the middle, the links below the logo on a phone */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px max(24px, calc(50% - 336px));
}

/* Logo small */
header img {
    display: block;
    width: 96px;
}

/* Links of the top bar always side by side on one line, bold */
nav {
    display: flex;
    gap: 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Dark band across the whole width, its text in the middle, as high as its text, later the place of the video */
.hero {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px max(24px, calc(50% - 336px));
    border: 0;
    background: var(--text-main);
    color: var(--background);
}

/* Name of the restaurant very big in the band */
.hero h1 {
    margin: 0;
    font-size: 40px;
}

/* Reservieren in the band: white button with red text */
.hero a {
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--background);
    color: var(--accent-logo);
    font-weight: 600;
    text-decoration: none;
}

/* Content one readable column in the middle */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Food and drinks folded, a tap on the heading opens them */
summary {
    cursor: pointer;
}

/* Heading of a folded list in the line of its arrow */
summary h2 {
    display: inline;
}

/* Headings black and bold like the counter page */
h1,
h2 {
    font-weight: 600;
    line-height: 1.25;
}

/* Section heading big, with room above */
h2 {
    margin: 32px 0 12px;
    font-size: 26px;
}

/* Group of the menu: its name as a small red heading with room above, like the printed menu */
h3 {
    margin: 28px 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-logo);
}

/* Impressum and Datenschutz small and grey at the end */
footer {
    font-size: 15px;
    color: var(--text-muted);
}

/* Their headings small too */
footer h2 {
    font-size: 18px;
}

/* Sections apart from each other by a thin grey line */
section {
    border-top: 1px solid var(--button-line);
}

/* Links black with a thin red line below */
a {
    color: inherit;
    text-decoration-color: var(--accent-logo);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Prices in columns, a bit smaller, so the four buffet columns fit a phone */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

/* Prices right below their age group, a grey line below each row */
th,
td {
    padding: 10px 4px;
    border-bottom: 1px solid var(--button-line);
    text-align: right;
}

/* Names of buffets, food, drinks left */
th:first-child {
    text-align: left;
}

/* First row of the buffet prices without lines, its Kinder in the middle above its two ages */
.buffet tr:first-child > * {
    border-bottom: 0;
    text-align: center;
}

/* Form fields one below the other */
form {
    display: grid;
    gap: 14px;
}

/* Label above its field */
label {
    display: grid;
    gap: 4px;
}

/* Field like the fields of the counter page: thin grey frame, rounded, big enough for a finger */
input {
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid var(--text-muted);
    border-radius: 12px;
    font: inherit;
    color: inherit;
    background: none;
}

/* Field being typed into: red frame and rosé, like the chosen field of the counter page */
input:focus {
    outline: 0;
    border-color: var(--accent-logo);
    box-shadow: inset 0 0 0 1px var(--accent-logo);
    background: var(--accent-soft);
}

/* Button rosé and bold like the main button of a window */
button {
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    font: inherit;
    font-weight: 600;
    color: inherit;
}
