* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'IndexFF';
  src: url('../fonts/indexff.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

@font-face {
  font-family: 'FaktPro';
  src: url('../fonts/FaktTT-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  font-synthesis: none;
}

@font-face {
  font-family: 'FaktPro';
  src: url('../fonts/FaktTT-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  font-synthesis: none;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SF Mono", "SFMono-Regular", "Monaco", "Inconsolata", "Roboto Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --font-family-indexff: 'IndexFF', "Times New Roman", Times, Georgia, serif;
  --font-family-faktpro: 'FaktPro', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Centralized font sizes - only 2 sizes used throughout the project */
  --font-size-large: 2rem;    /* h1 - IndexFF, h2 - FaktPro */
  --font-size-normal: 1rem;  /* p, body text - FaktPro */
  
  /* Centralized line heights */
  --line-height-large: 1.25em;   /* h1, h2, .h1, .h2 */
  --line-height-normal: 1.5em;    /* p, body text */
  
  /* Centralized margins */
  --margin-large-bottom: 3rem;   /* h1, .h1, .intro */
  --margin-medium-bottom: 2rem;  /* h2, .h2 */
  --margin-small-bottom: 1rem;   /* p, small elements */
  
  /* Mobile font size adjustments */
  --font-size-large-mobile: calc(var(--font-size-large) * 0.85);    /* 1.8rem */
  --font-size-normal-mobile: calc(var(--font-size-normal) * 1);  /* 0.9rem */
}

html {
  font-family: var(--font-family-faktpro);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Font loading test - remove after debugging */
.font-test-indexff {
  font-family: 'IndexFF', serif !important;
  font-size: 2rem !important;
}

.font-test-faktpro {
  font-family: 'FaktPro', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
}
img {
  width: 100%;
}
body {
  padding: 0;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-variant-ligatures: common-ligatures;
  font-variant-ligatures: common-ligatures;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 6rem;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
}
.menu a {
  padding: 1rem;
  display: block;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* h2 elements get special treatment */
h2 {
  font-family: var(--font-family-faktpro) !important;
  font-size: var(--font-size-large) !important;
  line-height: var(--line-height-large) !important;
  margin-bottom: var(--margin-medium-bottom) !important;
}

/* Fix for p elements inside h2 (from Kirby's kt() method) */
h2 p {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-family: var(--font-family-indexff);
  font-size: var(--font-size-large);
  margin-bottom: var(--margin-large-bottom);
  line-height: var(--line-height-large);
}
.text h2,
.h2 {
  font-size: var(--font-size-large);
  line-height: var(--line-height-large);
  margin-bottom: var(--margin-medium-bottom);
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: calc(var(--font-size-normal) * 1.25);
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: calc(var(--font-size-normal) * 0.875);
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-black);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

/* Default image styles - disabled for split view
.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
*/

.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
  color: var(--color-black);
}

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

/* Split Screen Layout */
.split-screen {
  display: flex;
  min-height: 100vh;
}

.split-left {
  width: 50%;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
}

.split-right {
  width: 50%;
  margin-left: 50%;
}

/* Responsive Anpassungen */
@media screen and (max-width: 60rem) {
  .split-screen {
    flex-direction: column;
  }
  
  .split-left {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .split-right {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

/* Eat Block Styles */
.eat-block {
  margin-bottom: 2rem;
}

.eat-date {
  margin: 0 !important;
  margin-bottom: 1.5rem !important;
}

.eat-section {
  margin-bottom: 1.5rem;
}

.eat-section:last-child {
  margin-bottom: 0;
}

.eat-title {
  margin: 0 !important;
  margin-bottom: 0 !important;
}

/* Eat content styling */
.eat-content {
  font-family: var(--font-family-faktpro) !important;
  font-size: var(--font-size-large) !important;
  line-height: var(--line-height-large) !important;
}

/* Fix for p elements inside eat-content h2 */
.eat-content p {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile font size adjustments - centralized */
@media screen and (max-width: 60rem) {
  /* Global mobile font size adjustments */
  .text h1,
  .h1,
  .intro {
    font-size: var(--font-size-large-mobile);
  }
  
  .text h2,
  .h2 {
    font-size: var(--font-size-large-mobile);
  }
  
  /* Mobile h2 elements - override global h2 rule */
  h2 {
    font-family: var(--font-family-faktpro) !important;
    font-size: var(--font-size-large-mobile) !important;
    line-height: var(--line-height-large) !important;
    margin-bottom: var(--margin-medium-bottom) !important;
  }
  
  /* Fix for p elements inside h2 on mobile */
  h2 p {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Ensure eat and karte h2 elements use mobile sizing */
  .eat-block h2,
  .eat-section h2,
  .eat-content,
  .karte-block h2,
  .karte-table h2,
  .karte-offer h2,
  .karte-price-external h2,
  .karte-price-internal h2 {
    font-family: var(--font-family-faktpro) !important;
    font-size: var(--font-size-large-mobile) !important;
    line-height: var(--line-height-large) !important;
  }
  
  .text p {
    font-size: var(--font-size-normal-mobile);
  }
  
  .text blockquote {
    font-size: calc(var(--font-size-normal-mobile) * 1.25);
  }
  
  .text blockquote footer {
    font-size: calc(var(--font-size-normal-mobile) * 0.875);
  }
  
  /* Eat block mobile adjustments */
  .eat-content {
    font-size: var(--font-size-large-mobile) !important;
    line-height: var(--line-height-large) !important;
  }
  
  /* Fix for p elements inside eat-content h2 on mobile */
  .eat-content p {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Responsive adjustments for eat block */
@media screen and (max-width: 60rem) {
  .eat-title {
    margin-bottom: 0.25rem;
  }
  
  .eat-content {
    margin: 0;
  }
}
