/* Static replica of the Avada theme of eisbahn-stellingen.de. Pure CSS, no JavaScript. */

/* Fonts: self-hosted (latin subset), no requests to Google */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/lato-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/frank-ruhl-libre-300.woff2") format("woff2"); }

:root {
    --color-primary: #24a0de;
    --color-primary-dark: #1a80b6;
    --color-accent: #213d65;
    --color-text: #333;
    --color-heading: #222;
    --color-dark: #222;
    --color-nav: #bababa;
    --color-light-bg: #f9f9f9;
    --color-border: #e0dede;
    --color-danger-bg: #e05c7f;
    --color-danger-text: #851936;
    --color-notice-bg: #fffcdf;
    --font-base: "Lato", Arial, Helvetica, sans-serif;
    --font-serif: "Frank Ruhl Libre", Georgia, serif;
    --site-width: 1170px;
    --gutter: 30px;
    --header-height: 112px;
    --hero-image: url("../img/eisflaeche.jpg");
    --title-image: url("../img/eisflaeche-von-ganz-unten-schmal.jpg");
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 20px;
    line-height: 34px;
    font-weight: 400;
    color: var(--color-text);
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
p { margin: 0 0 20px; }
h1, h2, h3, h4, h5 { font-weight: 300; letter-spacing: 1px; color: var(--color-text); line-height: 1.2; margin: 0 0 20px; }
h1 { font-size: 46px; }
/* Sizes from the Avada typography settings */
h2 { font-size: 48px; line-height: 1.1; margin-bottom: 30px; }
h3 { font-size: 36px; line-height: 1.3; margin-bottom: 30px; }
h4 { font-size: 22px; line-height: 1.5; }
h6 { font-family: var(--font-serif); font-size: 18px; font-weight: 300; color: #2d2d2d; }
ul, ol { margin: 0 0 20px; padding-left: 1.5em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 40px 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 20px; background: #fff; color: var(--color-dark); }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: calc(var(--site-width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; flex: none; }

/* Header and navigation */
.header { position: relative; z-index: 20; background: var(--color-dark); box-shadow: 0 10px 50px -2px rgba(0, 0, 0, .14); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); padding: 20px 2%; }
.header__logo img { width: 212px; height: 72px; }

.nav__toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav__toggle { display: none; color: var(--color-nav); cursor: pointer; font-size: 28px; line-height: 1; padding: 8px; }
.nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
    display: flex; align-items: center; gap: 8px;
    height: 76px; margin-top: -20px; padding: 0 28.5px;
    font-size: 14px; line-height: 14px; letter-spacing: 2px; color: var(--color-nav);
}
.nav__link:hover, .nav__link:focus, .nav__item:hover > .nav__link { color: #fff; background: var(--color-primary-dark); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item--active > .nav__link { color: #fff; background: var(--color-primary-dark); }
.nav__caret { width: 10px; height: 10px; }
.nav__sub {
    display: none; position: absolute; top: 56px; left: 0; min-width: 260px;
    margin: 0; padding: 0; list-style: none;
    background: #fff; border-top: 3px solid var(--color-primary-dark); box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: block; }
.nav__sub a { display: block; padding: 12px 20px; font-size: 16px; line-height: 1.4; color: var(--color-text); border-bottom: 1px solid #f2efef; }
.nav__sub a:hover, .nav__sub a:focus, .nav__sub a[aria-current="page"] { background: var(--color-light-bg); color: var(--color-primary-dark); text-decoration: none; }

/* "+" contact flyout (replaces the Avada sliding bar) */
.contact-flyout { position: relative; }
.contact-flyout > summary { list-style: none; cursor: pointer; }
.contact-flyout > summary::-webkit-details-marker { display: none; }
.contact-flyout__panel {
    position: absolute; right: 0; top: 56px; width: 320px; padding: 25px;
    background: #363839; color: #c5c7c9; font-size: 15px; line-height: 1.6; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.contact-flyout__panel h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #ddd; letter-spacing: 0; }
.contact-flyout__panel p { margin: 0 0 8px; }
.contact-flyout__panel a { color: #fff; }

@media (max-width: 1000px) {
    .header__inner { flex-wrap: wrap; }
    .nav__toggle { display: block; }
    .nav { flex-basis: 100%; display: none; margin-top: 20px; }
    .nav__toggle-input:checked ~ .nav { display: block; }
    .nav__toggle-input:focus-visible + .nav__toggle { outline: 2px solid var(--color-primary); }
    .nav__list { flex-direction: column; align-items: stretch; }
    .nav__link { height: auto; margin: 0; padding: 14px 20px; font-size: 16px; border-top: 1px solid #333; }
    .nav__caret { display: none; }
    .nav__sub { display: block; position: static; min-width: 0; border: 0; box-shadow: none; background: transparent; }
    .nav__sub a { padding: 10px 20px 10px 40px; color: var(--color-nav); border-bottom: 0; border-top: 1px solid #333; }
    .nav__sub a:hover, .nav__sub a:focus, .nav__sub a[aria-current="page"] { background: var(--color-primary-dark); color: #fff; }
    .contact-flyout__panel { position: static; width: auto; box-shadow: none; }
}

/* Front page hero (replaces the Avada slider) */
.hero {
    display: flex; align-items: center;
    min-height: max(400px, calc(100vh - var(--header-height)));
    padding: 40px var(--gutter);
    background: var(--hero-image) center / cover no-repeat;
}
.hero__content { width: 100%; max-width: var(--site-width); margin: 0 auto; }
.hero__title, .hero__caption { display: inline-block; margin: 0 0 20px; padding: 3px 15px; background: rgba(0, 0, 0, .4); color: #fff; font-weight: 300; letter-spacing: 1px; }
.hero__title { font-size: 60px; line-height: 1.33; }
.hero__caption { font-size: 24px; line-height: 1.58; }
.hero__caption a { color: var(--color-primary); }

/* Page title bar (subpages) */
.page-title {
    display: flex; align-items: center; justify-content: center;
    min-height: 300px; padding: 5px var(--gutter);
    background: var(--color-primary) var(--title-image) center / cover no-repeat;
    text-align: center;
}
.page-title h1 { margin: 0; font-size: 72px; line-height: 1.4; font-weight: 300; letter-spacing: 1px; color: #fff; }

/* Main content area */
.main { padding: 100px 0; }
.main--flush { padding: 0; }
.main > .container > :last-child { margin-bottom: 0; }

/* Full width sections (front page) */
.section { padding: 100px var(--gutter) 85px; }
.section--light { background: var(--color-light-bg); }
.section--alert { padding: 20px var(--gutter) 0; }
.section__inner { max-width: var(--site-width); margin: 0 auto; }
.section__intro { max-width: 78%; margin: 0 auto; text-align: center; }
.section__title { margin: 0 0 20px; font-size: 48px; line-height: 1.1; text-align: center; }
.separator { width: 100px; margin: 0 auto 35px; border: 0; border-top: 2px solid var(--color-accent); }

/* Content boxes (front page) */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 60px; }
.box { display: flex; flex-direction: column; background: #fff; text-align: center; }
.box__body { flex: 1; padding: 35px 35px 20px; }
.box__icon { width: 70px; height: 70px; margin: 0 auto 10px; color: var(--color-primary); }
.box__title { margin: 0 0 15px; font-size: 26px; line-height: 1.1; color: var(--color-heading); }
.box__title a { color: inherit; }
.box__more { display: block; padding: 5px 10px; background: var(--color-primary); color: #fff; }
.box__more:hover, .box__more:focus { background: var(--color-primary-dark); text-decoration: none; }

/* Call to action with fixed background (front page) */
.cta {
    padding: 110px var(--gutter);
    background: var(--title-image) center / cover no-repeat fixed;
    text-align: center; color: #fff;
}
.cta__title { margin: 0 0 20px; font-size: 72px; line-height: 1.1; color: #fff; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 29px; border-radius: 25px;
    background: var(--color-primary); color: #fff;
    font-size: 14px; line-height: 17px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.button:hover, .button:focus { background: var(--color-primary-dark); text-decoration: none; }

/* Alerts */
.alert { display: flex; gap: 20px; margin: 0 0 20px; padding: 25px; }
.alert__icon { width: 22px; height: 22px; margin-top: 6px; }
.alert__content > :last-child { margin-bottom: 0; }
.alert--danger { background: var(--color-danger-bg); color: var(--color-danger-text); text-transform: uppercase; }
.alert--notice { background: var(--color-notice-bg); border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.alert--success { background: #f5ffe7; border-bottom: 1px solid var(--color-border); color: #5ab72b; }
.alert--info { background: #e1f4fd; border-bottom: 1px solid var(--color-border); color: var(--color-primary); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 30px; }
.table { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 1.5; }
.table caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.table th, .table td { padding: 12px 15px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table thead th { font-weight: 700; border-bottom-width: 2px; }

/* Generic content helpers */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin: 0 0 30px; }
.columns--aside { grid-template-columns: 3fr 1fr; }
.columns--2-1 { grid-template-columns: 2fr 1fr; }
.sidebar > h2 { margin-top: 0; font-size: 26px; line-height: 1.1; }
.figure { margin: 0 0 30px; }
.figure figcaption { font-size: 15px; color: #747474; }
.text-center { text-align: center; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.contact-card { margin: 0 0 30px; font-style: normal; }
.contact-line { display: flex; align-items: center; gap: 16px; }
.contact-line .icon { width: 28px; height: 28px; color: var(--color-primary); }

/* FAQ accordion (native details/summary) */
.faq { margin: 0 0 30px; }
.faq__item { margin: 0 0 10px; border: 1px solid #ccc; background: #fff; }
.faq__item:hover { background: var(--color-light-bg); }
.faq__question {
    display: flex; align-items: center; gap: 15px; padding: 15px 20px;
    cursor: pointer; list-style: none; font-size: 20px; font-weight: 300; letter-spacing: 1px; line-height: 1.4;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before {
    content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px;
    background: #333; color: #fff; font-size: 16px; font-weight: 700; line-height: 1;
}
.faq__item[open] > .faq__question::before { content: "\2212"; background: var(--color-primary); }
.faq__item[open] > .faq__question { color: var(--color-primary); }
.faq__answer { padding: 0 20px 5px 59px; }

/* Blog list (Tipps und Tricks) */
.post-list { display: grid; gap: 60px; }
.post-teaser__head { display: flex; gap: 14px; margin-bottom: 30px; }
.post-teaser__meta { display: flex; flex-direction: column; gap: 4px; width: 82px; flex: none; }
.post-teaser__date { padding: 5px 0; background: var(--color-primary); color: #fff; text-align: center; line-height: 1.2; }
.post-teaser__day { display: block; font-size: 24px; font-weight: 700; }
.post-teaser__month { display: block; font-size: 16px; }
.post-teaser__format { display: grid; place-items: center; height: 44px; background: #eef0f2; color: var(--color-primary); }
.post-teaser__format .icon { width: 18px; height: 18px; }
.post-teaser__image img { width: 320px; height: 202px; object-fit: cover; }
.post-teaser__title { margin: 0 0 20px; font-family: var(--font-serif); font-size: 30px; line-height: 1.3; letter-spacing: 1px; }
.post-teaser__title a { color: var(--color-primary); }

/* Single post */
.post__image { margin: 0 0 30px; }
.post__meta { font-size: 15px; color: #747474; margin: 30px 0 0; padding-top: 15px; border-top: 1px solid var(--color-border); }

/* Footer */
.footer { padding: 30px var(--gutter); background: var(--color-dark); color: #fff; text-align: center; font-size: 13px; line-height: 34px; }
.footer a { color: #fff; }
.footer__sep { margin: 0 6px; }

/* Responsive */
@media (max-width: 1000px) {
    .hero__title { font-size: 42px; }
    .page-title { min-height: 200px; }
    .page-title h1 { font-size: 46px; line-height: 1.2; }
    .section__title { font-size: 38px; }
    .section__intro { max-width: none; }
    .cta { background-attachment: scroll; }
    .cta__title { font-size: 48px; }
    .boxes { grid-template-columns: 1fr; }
    .columns--aside, .columns--2-1 { grid-template-columns: 1fr; }
    h2 { font-size: 38px; }
    h3 { font-size: 30px; }
}
@media (max-width: 640px) {
    :root { --gutter: 20px; }
    body { font-size: 18px; line-height: 30px; }
    .main:not(.main--flush), .section { padding-top: 50px; padding-bottom: 40px; }
    .hero__title { font-size: 32px; }
    .hero__caption { font-size: 20px; }
    .page-title h1 { font-size: 34px; }
    h2 { font-size: 30px; }
    h3 { font-size: 26px; }
    .cta__title { font-size: 36px; }
    .alert { padding: 20px; gap: 12px; }
    .post-teaser__head { flex-wrap: wrap; }
    .post-teaser__image img { width: 100%; height: auto; aspect-ratio: 320 / 202; }
    .faq__answer { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* AdSense in-article slot */
.ad-slot { display: block; margin: 0 0 34px; text-align: center; }
