/* ================================================================
   BKO SITEPACKAGE – site.css
   Berliner Konzertorchester e.V. | TYPO3 v14
   Design: 1:1 Nachbau berlinerkonzertorchester.de
   Font:   Raleway (Google Fonts)
   Farben: #3d5281 (Stahlblau) · #f29900 (Amber) · #2f2f2f (Text)
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  --clr-blue:        #3d5281;
  --clr-blue-dark:   #2d3f66;
  --clr-orange:      #f29900;
  --clr-orange-dark: #d98800;
  --clr-white:       #ffffff;
  --clr-text:        #2f2f2f;
  --clr-text-muted:  #666666;
  --clr-bg:          #ffffff;
  --clr-bg-light:    #f5f5f5;
  --clr-footer:      #232323;
  --clr-border:      #e0e0e0;
  --font:            'Raleway', sans-serif;
  --fs-xs:           12px;
  --fs-sm:           13px;
  --fs-nav:          14px;
  --fs-base:         17px;
  --fs-lg:           20px;
  --fs-xl:           24px;
  --fs-2xl:          30px;
  --fs-3xl:          36px;
  --fs-hero:         clamp(28px, 5vw, 52px);
  --max-width:       1170px;
  --header-height:   80px;
  --nav-height:      48px;
  --gutter:          20px;
  --ease:            cubic-bezier(.25,.46,.45,.94);
  --dur:             220ms;
  --shadow:          0 2px 12px rgba(0,0,0,.12);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.2);
}

/* ----------------------------------------------------------------
   2. Reset & Basis
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--clr-blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover, a:focus-visible { color: var(--clr-orange); }
p { margin-bottom: 1em; line-height: 1.7; }
p:last-child { margin-bottom: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--clr-text); text-transform: uppercase; }

/* ----------------------------------------------------------------
   3. Barrierefreiheit
   ---------------------------------------------------------------- */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; background: var(--clr-orange); color: var(--clr-white); padding: .5rem 1.5rem; font-weight: 700; transition: top var(--dur); }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--clr-orange); outline-offset: 3px; }

/* ----------------------------------------------------------------
   4. Container
   ---------------------------------------------------------------- */
.container { width: min(var(--max-width), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ----------------------------------------------------------------
   5. Header
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--clr-white);
  box-shadow: var(--shadow);
}

.header-inner {
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-link:hover { opacity: .85; }

.brand-dots {
  display: grid;
  grid-template-columns: repeat(4, 7px);
  grid-template-rows: repeat(3, 7px);
  gap: 3px;
  flex-shrink: 0;
}
.brand-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--clr-blue); opacity: .5; }
.brand-dots span:nth-child(3)  { opacity: .8; }
.brand-dots span:nth-child(4)  { opacity: 1; }
.brand-dots span:nth-child(7)  { opacity: .9; }
.brand-dots span:nth-child(8)  { opacity: 1; }
.brand-dots span:nth-child(11) { opacity: .7; }
.brand-dots span:nth-child(12) { opacity: 1; }

.brand-name { font-family: var(--font); font-weight: 700; line-height: 1.2; letter-spacing: .04em; }
.brand-name__main { display: block; font-size: 18px; color: var(--clr-blue); text-transform: uppercase; }
.brand-name__sub  { display: block; font-size: 13px; color: var(--clr-blue); text-transform: uppercase; font-weight: 400; letter-spacing: .08em; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--clr-blue); border-radius: 2px; transition: all var(--dur); }

/* ----------------------------------------------------------------
   6. Navigation
   ---------------------------------------------------------------- */
.main-nav {
  position: fixed;
  top: var(--header-height); inset-inline: 0;
  z-index: 900;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.main-nav__inner { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }

.nav-list--level1 { display: flex; align-items: stretch; }
.nav-item--level1 { position: relative; }

.nav-link--level1 {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-height);
  padding-inline: 18px;
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--clr-blue);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--dur), border-color var(--dur);
  white-space: nowrap;
}

.nav-link--level1:hover,
.nav-link--level1:focus-visible,
.nav-item--level1.is-active  > .nav-link--level1,
.nav-item--level1.is-current > .nav-link--level1 {
  color: var(--clr-orange);
  border-bottom-color: var(--clr-orange);
}

.nav-arrow { font-size: .55em; transition: transform var(--dur); }
.nav-item--level1:hover .nav-arrow,
.nav-item--level1:focus-within .nav-arrow { transform: rotate(180deg); }

.nav-list--level2 {
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-orange);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
  z-index: 10;
}

.nav-item--level1:hover .nav-list--level2,
.nav-item--level1:focus-within .nav-list--level2 {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-link--level2 {
  display: block;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-blue);
  border-bottom: 1px solid var(--clr-border);
  transition: all var(--dur);
}
.nav-link--level2:hover,
.nav-link--level2:focus-visible,
.nav-item--level2.is-active  > .nav-link--level2,
.nav-item--level2.is-current > .nav-link--level2 {
  color: var(--clr-white);
  background: var(--clr-orange);
}
.nav-item--level2:last-child .nav-link--level2 { border-bottom: none; }

/* ----------------------------------------------------------------
   7. Page Offset
   ---------------------------------------------------------------- */
.main-content { padding-top: calc(var(--header-height) + var(--nav-height)); }

/* ----------------------------------------------------------------
   8. Hero (Startseite)
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: #111;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .72; }
.hero__content { position: relative; z-index: 1; padding-block: 80px; }

.hero__title-bar {
  display: inline-block;
  background: rgba(0,0,0,.85);
  padding: 12px 20px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}

.hero__subtitle { font-size: var(--fs-lg); color: rgba(255,255,255,.85); font-weight: 300; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------
   9. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--clr-orange); color: var(--clr-white); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--clr-orange-dark); color: var(--clr-white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(242,153,0,.4); }
.btn--outline { background: transparent; color: var(--clr-white); border: 2px solid rgba(255,255,255,.6); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--clr-orange); border-color: var(--clr-orange); color: var(--clr-white); }
.btn--blue { background: var(--clr-blue); color: var(--clr-white); }
.btn--blue:hover, .btn--blue:focus-visible { background: var(--clr-blue-dark); color: var(--clr-white); }

/* ----------------------------------------------------------------
   10. Sektionen
   ---------------------------------------------------------------- */
.section { padding-block: 80px; }
.section--light { background: var(--clr-bg); }

.section--dark {
  position: relative;
  background: #1a1a1a;
  color: var(--clr-white);
}
.section--dark::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 0; }
.section--dark > * { position: relative; z-index: 1; }
.section--dark .section-title,
.section--dark h2, .section--dark h3 { color: var(--clr-white); }
.section--dark p { color: rgba(255,255,255,.8); }
.section--bg-image { background-size: cover; background-position: center; background-attachment: fixed; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-title {
  font-family: var(--font);
  font-size: var(--fs-3xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text);
  margin-bottom: 12px;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--clr-orange);
  margin: 14px auto 0;
}
.section-header.align-left .section-title::after { margin-left: 0; }

.section-subtitle {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.section--dark .section-subtitle { color: rgba(255,255,255,.6); }

/* ----------------------------------------------------------------
   11. Konzert-Grid (3 Spalten)
   ---------------------------------------------------------------- */
.concert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.concert-card__meta {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-orange);
  margin-bottom: 8px;
}
.concert-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.concert-card__composer {
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 8px;
}
.concert-card__series {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.concert-card__label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  display: block;
}
.concert-card__tickets { margin-top: 16px; }

/* ----------------------------------------------------------------
   12. Orchester (weiß, Text + Foto-Grid)
   ---------------------------------------------------------------- */
.orchestra-text { max-width: 800px; margin-inline: auto; margin-bottom: 48px; }
.orchestra-text h2 { font-size: var(--fs-2xl); margin-bottom: 16px; color: var(--clr-blue); }

.orchestra-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.orchestra-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ----------------------------------------------------------------
   13. Repertoire (dunkel, Liste + Foto)
   ---------------------------------------------------------------- */
.repertoire-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.repertoire-list { padding: 0; }
.repertoire-list li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.repertoire-list li:last-child { border-bottom: none; }

/* ----------------------------------------------------------------
   14. Kontakt
   ---------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }

/* Formularfelder */
.frame-type-form input[type="text"],
.frame-type-form input[type="email"],
.frame-type-form input[type="tel"],
.frame-type-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  margin-bottom: 16px;
  display: block;
  transition: border-color var(--dur);
}
.frame-type-form input:focus, .frame-type-form textarea:focus { outline: none; border-color: var(--clr-orange); }

.frame-type-form input[type="submit"],
.frame-type-form button[type="submit"] {
  background: var(--clr-orange);
  color: var(--clr-white);
  border: none;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--dur);
}
.frame-type-form input[type="submit"]:hover, .frame-type-form button[type="submit"]:hover { background: var(--clr-orange-dark); }

.contact-info-box {
  background: var(--clr-bg-light);
  border-top: 3px solid var(--clr-orange);
  padding: 32px;
}
.contact-info-box h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-blue);
  margin-bottom: 16px;
}
.contact-info-box address { font-style: normal; line-height: 2; color: var(--clr-text); }

/* ----------------------------------------------------------------
   15. Partner
   ---------------------------------------------------------------- */
.partner-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 60px; }
.partner-grid img { max-height: 80px; width: auto; filter: grayscale(30%); transition: filter var(--dur); }
.partner-grid a:hover img { filter: none; }

/* ----------------------------------------------------------------
   16. Page Hero / Seitentitel
   ---------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: var(--clr-blue);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero__content { position: relative; z-index: 1; padding-block: 40px; color: var(--clr-white); }
.page-hero__title { font-size: var(--fs-hero); font-weight: 800; color: var(--clr-white); text-transform: uppercase; letter-spacing: .04em; }
.page-hero__subtitle { font-size: var(--fs-lg); color: rgba(255,255,255,.8); font-weight: 300; margin-top: 8px; text-transform: none; }

.page-intro { background: var(--clr-blue); padding-block: 48px; color: var(--clr-white); }
.page-intro__title { color: var(--clr-white); font-size: var(--fs-hero); font-weight: 800; text-transform: uppercase; }

/* ----------------------------------------------------------------
   17. Breadcrumb
   ---------------------------------------------------------------- */
.breadcrumb { padding-block: 16px; border-bottom: 1px solid var(--clr-border); margin-bottom: 40px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb__link { color: var(--clr-text-muted); font-weight: 600; }
.breadcrumb__link:hover { color: var(--clr-orange); }
.breadcrumb__separator { color: var(--clr-border); }
.breadcrumb__item--current { color: var(--clr-orange); font-weight: 700; }

/* ----------------------------------------------------------------
   18. Zweispaltig (Unterseite + Sidebar)
   ---------------------------------------------------------------- */
.layout-split { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.layout-split__sidebar { position: sticky; top: calc(var(--header-height) + var(--nav-height) + 20px); }

.sidebar-widget { background: var(--clr-bg-light); border-top: 3px solid var(--clr-orange); padding: 24px; margin-bottom: 24px; }
.sidebar-widget__title { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-blue); margin-bottom: 16px; }

/* ----------------------------------------------------------------
   19. Fluid Styled Content
   ---------------------------------------------------------------- */
.frame h2, .page-content h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-blue);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-orange);
}
.frame h3, .page-content h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.lead { font-size: var(--fs-xl); font-weight: 300; color: var(--clr-text-muted); line-height: 1.65; margin-bottom: 24px; }

.ce-textpic .ce-gallery { float: right; margin-left: 24px; margin-bottom: 16px; }
.ce-textpic.ce-left .ce-gallery { float: left; margin-left: 0; margin-right: 24px; }
.ce-textpic figcaption { font-size: var(--fs-xs); color: var(--clr-text-muted); margin-top: 6px; font-style: italic; }

.ce-div { border: none; border-top: 1px solid var(--clr-border); margin-block: 40px; }

.ce-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ce-table th { background: var(--clr-blue); color: var(--clr-white); padding: 10px 14px; text-align: left; font-weight: 700; text-transform: uppercase; font-size: var(--fs-xs); }
.ce-table td { padding: 10px 14px; border-bottom: 1px solid var(--clr-border); }
.ce-table tr:nth-child(even) td { background: var(--clr-bg-light); }

blockquote { border-left: 4px solid var(--clr-orange); margin: 32px 0; padding: 16px 24px; background: var(--clr-bg-light); font-style: italic; color: var(--clr-text-muted); font-size: var(--fs-lg); }

.ce-bodytext ul { list-style: none; padding: 0; }
.ce-bodytext ul li { padding: 4px 0 4px 20px; position: relative; }
.ce-bodytext ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--clr-orange); }

/* ----------------------------------------------------------------
   20. Footer
   ---------------------------------------------------------------- */
.site-footer { background: var(--clr-footer); color: rgba(255,255,255,.6); }

.footer-legal { padding-block: 24px; }
.footer-legal__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright { font-size: var(--fs-xs); margin: 0; }
.footer-legal-nav { display: flex; gap: 24px; }
.footer-legal-nav a { font-size: var(--fs-xs); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.footer-legal-nav a:hover { color: var(--clr-orange); }

/* ----------------------------------------------------------------
   21. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .concert-grid      { grid-template-columns: 1fr 1fr; }
  .repertoire-layout { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .main-nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--clr-white);
    transform: translateX(-100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
    padding: 16px;
    border-top: 2px solid var(--clr-orange);
    box-shadow: none;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__inner { padding-inline: 0; }
  .nav-list--level1 { flex-direction: column; }
  .nav-link--level1 { height: auto; padding: 14px 0; border-bottom: 1px solid var(--clr-border); border-left: none; font-size: 16px; }
  .nav-list--level2 { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; display: none; padding-left: 16px; }
  .nav-item--level1.is-open .nav-list--level2 { display: block; }
  .nav-toggle { display: flex; }
  .main-content { padding-top: var(--header-height); }

  .concert-grid     { grid-template-columns: 1fr; }
  .orchestra-photos { grid-template-columns: 1fr; }
  .layout-split     { grid-template-columns: 1fr; }
  .hero             { min-height: 60vh; }
  .footer-legal__inner { flex-direction: column; text-align: center; }
}

/* ----------------------------------------------------------------
   22. Scrollbar & Print
   ---------------------------------------------------------------- */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--clr-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-orange); }

@media print {
  .site-header, .main-nav, .site-footer { display: none; }
  .main-content { padding-top: 0; }
}
