/*
Theme Name: Rostock-Trans Modern
Description: Neues Design im Stil der Karriereseite (Dunkelblau, Gelb, grosse Schrift). Nutzt Funktionen und Inhalte des klassischen Themes.
Template: rostock-trans
Version: 0.1.0
Text Domain: rostock-trans-modern
*/

:root { color-scheme: light; --navy: #10253f; --blue: #1c4e85; --orange: #ffd36a; --paper: #f3f6fa; --muted: #44566b; --line: #cbd8e6; --band: #e4edf6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 system-ui, sans-serif; color: var(--navy); background: var(--paper); }
img, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #bd5b00; outline-offset: 4px; }
.rt-skip { position: absolute; left: -9999px; }
.rt-skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 6px 10px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }

/* Kopf */
.mast { background: #fff; position: relative; z-index: 30; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; min-height: 77px; flex-wrap: wrap; padding: 10px 0; }
.brand { line-height: 0; flex: none; }
.brand img { display: block; width: clamp(180px, 26vw, 300px); height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav li { position: relative; }
.nav a { display: block; padding: 8px 0; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a:focus { border-bottom-color: var(--line); }
.nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-page-ancestor > a { border-bottom-color: var(--orange); }
.nav .sub-menu { display: none; position: absolute; left: -14px; top: 100%; min-width: 180px; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(16, 37, 63, .14); }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { font-weight: 600; }
.tel { font-weight: 700; white-space: nowrap; }

/* Bausteine */
.eyebrow { margin: 0; color: var(--orange); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; background: var(--orange); color: #172335; text-decoration: none; font-weight: 800; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: transparent; color: #fff; border-color: #91a8c0; }
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid #dbe5ef; }

/* Startseite: Buehne */
.hero { background: var(--navy); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 500px; align-items: stretch; }
.hero-copy { padding: 70px 30px 70px 0; align-self: center; }
.hero h1 { margin: 10px 0 18px; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; max-width: 700px; }
.hero p:not(.eyebrow) { max-width: 540px; margin: 0 0 17px; color: #e1e9f2; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.visual { position: relative; min-height: 290px; overflow: hidden; background: #22486e; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts { background: var(--band); padding: 24px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts strong { display: block; font-size: 1.25rem; }
.facts span { color: var(--muted); }

/* Karriereseite */
.facts.three .wrap { grid-template-columns: repeat(3, 1fr); }
.facts.three strong { font-size: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.split h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 16px; }
.split h3 { line-height: 1.2; margin: 0 0 8px; }
.split p { margin: 0 0 17px; }
.split ul { padding-left: 20px; margin: 12px 0; }
.split li + li { margin-top: 9px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #f7f9fc; }
.page-karriere .hero-grid { min-height: 520px; }
.page-karriere .visual img { object-position: 57% 50%; }

/* Unterseiten: Titelband */
.pagehead { background: var(--navy); color: #fff; padding: 46px 0 42px; }
.pagehead h1 { margin: 8px 0 0; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; }
.pagehead .eyebrow a { text-decoration: none; }

/* Inhalt */
.content > :not(.rt-home):not(.rt-gal-cats):not(.wp-block-gallery) { max-width: 820px; }
.content > :first-child { margin-top: 0; }
.content h2, .section > .wrap > h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 20px; }
.content h3 { font-size: 1.25rem; line-height: 1.2; margin: 34px 0 8px; }
.content h4 { margin: 24px 0 6px; }
.content p { margin: 0 0 17px; }
.content ul, .content ol { padding-left: 20px; margin: 12px 0 18px; }
.content li + li { margin-top: 6px; }
.content a { color: var(--blue); font-weight: 600; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.content img { border-radius: 4px; }
.content p:empty, .content p.rt-empty { display: none; }
.content h3 > br:first-child { display: none; }

/* Startseite: Text und Video */
.home .item-title, .content .rt-pagetitle { display: none; }
.content .rt-pagetitle + h3 { margin-top: 0; }
mark.rt-offen { background: #fff1a8; color: inherit; padding: 0 2px; }
.rt-home { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.rt-home-text p { margin: 0 0 4px; }
.rt-home-text p:has(+ p), .rt-home-text p { max-width: 60ch; }
.rt-home-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }

/* Bildlaufband */
.rt-slider { position: relative; }
.rt-slider-view { overflow: hidden; border-radius: 10px; }
.rt-slider ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; transition: transform .45s cubic-bezier(.87, 0, .13, 1); }
.rt-slider li { position: relative; flex: 0 0 calc((100% - 32px) / 3); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #22486e; }
.rt-slider li img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; background: linear-gradient(transparent, rgba(16, 37, 63, .88)); color: #fff; font-weight: 800; font-size: 1.1rem; }
.rt-slider button { position: absolute; top: calc(50% - 24px); width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(16, 37, 63, .25); }
.rt-prev { left: -14px; }
.rt-next { right: -14px; }

/* Galerie */
.rt-gal-head { display: none; }
.rt-gal-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content .rt-gal-cat { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #22486e; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; }
.rt-gal-cat img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .3s; }
.rt-gal-cat:hover img { transform: scale(1.04); }
.rt-gal-cat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px; background: linear-gradient(transparent, rgba(16, 37, 63, .88)); font-weight: 800; font-size: 1.1rem; }
.rt-crumb { display: none; }
.content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0 0 28px; }
.content .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0; display: block; }
.content .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.content .wp-block-gallery .wp-lightbox-container button { display: none; }

/* Kontakt */
.rt-acc { margin: 0 0 10px !important; }
.rt-acc strong { color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rt-contact { display: grid; grid-template-columns: 26px 1fr; gap: 6px 8px; margin: 0 0 34px; }
.rt-contact dt { grid-column: 1; margin: 0; padding-top: 3px; }
.rt-contact dd { grid-column: 2; margin: 0; }
.rt-contact dt.rt-wide { grid-column: 1 / 3; font-weight: 700; padding: 0; }
.rt-contact dd.rt-wide { grid-column: 1 / 3; margin-bottom: 10px; color: var(--muted); }
.rt-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 0; background: #f7f9fc; }
.rt-form legend { font-weight: 800; padding: 0 8px; }
.rt-form label { display: block; margin: 14px 0 4px; font-size: .94rem; font-weight: 700; }
.rt-form input[type=text], .rt-form input[type=email], .rt-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #8c9fb4; border-radius: 5px; background: #fff; color: var(--navy); }
.rt-form textarea { min-height: 180px; }
.rt-form .rt-check label { display: inline; font-weight: 400; }
.rt-form .rt-hp { position: absolute; left: -9999px; }
.rt-form button { margin-top: 18px; min-height: 49px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--orange); color: #172335; font-weight: 800; cursor: pointer; }
.rt-form .rt-red { color: #b3261e; }
.rt-form p { font-size: .94rem; color: var(--muted); }
.rt-msg { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid #2e7d32; background: #eaf5ea; }
.rt-msg.rt-err { border-color: #b3261e; background: #fbeceb; }

/* Fuss */
.foot { padding: 26px 0; background: var(--navy); color: #eef4fb; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot small { flex-basis: 100%; color: #b9c8d9; font-size: .85rem; }

@media (max-width: 900px) {
	.nav { order: 3; flex-basis: 100%; margin-left: 0; }
	.nav .sub-menu { left: 0; }
	.facts .wrap { grid-template-columns: repeat(2, 1fr); }
	.rt-slider li { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 760px) {
	.wrap { width: calc(100% - 34px); }
	.hero-grid, .rt-home, .split { grid-template-columns: 1fr; gap: 0; }
	.split > * + * { margin-top: 22px; }
	.facts.three .wrap { grid-template-columns: 1fr; gap: 11px; }
	.panel { padding: 17px; }
	.hero-copy { padding: 43px 0 33px; }
	.visual { min-height: 245px; margin-bottom: 18px; }
	.rt-home-video { margin-top: 26px; }
	.section { padding: 42px 0; }
	.rt-gal-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.rt-form fieldset { padding: 16px; }
	.tel { font-size: .9rem; }
	.rt-prev { left: 4px; }
	.rt-next { right: 4px; }
}
@media (max-width: 520px) {
	.rt-slider li { flex-basis: 100%; }
	.rt-gal-cats { grid-template-columns: 1fr; }
}
