/*
Theme Name: AnatoliaMed
Theme URI: https://anatoliamed.de
Author: AnatoliaMed
Description: Block-Theme für AnatoliaMed – Informations- und Vermittlungsseite für Zahnbehandlungen in der Türkei. Schriften lokal eingebunden (keine Google Fonts), RTL-fähig für Arabisch, mit Baustellen-Hinweis und Anfrageformular.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anatoliamed
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--tuerkis-hell); color: var(--wp--preset--color--petrol); }
:focus-visible { outline: 3px solid var(--wp--preset--color--terrakotta); outline-offset: 3px; }
img { height: auto; }


/* ---------- Abschnitte ---------- */
.amed-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 600; color: var(--wp--preset--color--tuerkis); margin-bottom: .5rem; }
.amed-hero h1 { max-width: 18ch; }
.amed-hero .amed-lead { max-width: 52ch; }
.amed-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }

.amed-karte { background: var(--wp--preset--color--weiss); border: 1px solid rgba(15,76,92,.10); border-radius: 16px; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.amed-karte:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,76,92,.10); }
.amed-karte h3 { margin-top: .2rem; }
.amed-karte .wp-block-image img { border-radius: 10px; }
.amed-karte a { font-weight: 600; }

.amed-schritt-nr { font-family: var(--wp--preset--font-family--serif); font-size: 2.6rem !important; line-height: 1; color: var(--wp--preset--color--terrakotta); margin-bottom: .4rem; }

.amed-hinweis { border-inline-start: 5px solid var(--wp--preset--color--terrakotta); border-radius: 0 12px 12px 0; }
.amed-info { border-inline-start: 5px solid var(--wp--preset--color--tuerkis); border-radius: 0 12px 12px 0; }

.amed-checkliste ul, ul.amed-checkliste { list-style: none; padding-inline-start: 0; }
ul.amed-checkliste li { position: relative; padding-inline-start: 2rem; margin-bottom: .6rem; }
ul.amed-checkliste li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--wp--preset--color--tuerkis-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F4C5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

.wp-block-image.amed-bild img { border-radius: 16px; }

/* FAQ */
.wp-block-details { background: var(--wp--preset--color--weiss); border: 1px solid rgba(15,76,92,.12); border-radius: 12px; padding: 1rem 1.25rem; margin-block: .75rem !important; }
.wp-block-details summary { font-weight: 600; cursor: pointer; color: var(--wp--preset--color--petrol); }
.wp-block-details[open] summary { margin-bottom: .6rem; }

/* Tabellen */
.wp-block-table table { border-collapse: collapse; width: 100%; background: var(--wp--preset--color--weiss); }
.wp-block-table th { background: var(--wp--preset--color--petrol); color: #fff; text-align: start; }
.wp-block-table td, .wp-block-table th { border: 1px solid rgba(15,76,92,.15); padding: .7rem .9rem; }

/* Fußbereich */
.amed-footer a { color: inherit; text-decoration: none; }
.amed-footer a:hover { text-decoration: underline; }
.amed-footer ul { list-style: none; padding-inline-start: 0; margin: 0; }
.amed-footer li { margin-bottom: .45rem; }

/* ---------- Anfrageformular ---------- */
.amed-form { display: grid; gap: 1.1rem; background: var(--wp--preset--color--weiss); border: 1px solid rgba(15,76,92,.12); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.2rem); }
.amed-form .amed-reihe { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .amed-form .amed-reihe { grid-template-columns: 1fr; } }
.amed-form label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--wp--preset--color--petrol); }
.amed-form input[type=text], .amed-form input[type=email], .amed-form input[type=tel], .amed-form select, .amed-form textarea { width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid #b9c7c9; border-radius: 10px; font: inherit; background: #fff; color: var(--wp--preset--color--text); }
.amed-form textarea { min-height: 130px; }
.amed-form .amed-check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--wp--preset--color--text); }
.amed-form .amed-check input { margin-top: .3rem; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; }
.amed-form .amed-klein { font-size: .9rem; color: var(--wp--preset--color--grau); }
.amed-form button { justify-self: start; background: var(--wp--preset--color--terrakotta); color: #fff; border: 0; border-radius: 999px; padding: .9rem 1.8rem; font: inherit; font-weight: 600; cursor: pointer; }
.amed-form button:hover { background: var(--wp--preset--color--petrol); }
.amed-form .amed-hp { position: absolute !important; left: -9999px !important; }
.amed-meldung { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1rem; }
.amed-meldung.ok { background: var(--wp--preset--color--tuerkis-hell); color: var(--wp--preset--color--petrol); }
.amed-meldung.fehler { background: #fbe6e1; color: #7a2a17; }

/* ---------- Arabisch / RTL ---------- */
:lang(ar) body, body:lang(ar), [dir=rtl] { font-family: "IBM Plex Sans Arabic", var(--wp--preset--font-family--sans); }
[dir=rtl] .amed-hinweis, [dir=rtl] .amed-info { border-radius: 12px 0 0 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .amed-karte { transition: none; } }

/* Dunkle Abschnitte */
.has-petrol-background-color :is(h1,h2,h3,h4,.amed-eyebrow) { color: #fff; }
.has-petrol-background-color a:not(.wp-element-button) { color: #fff; }
.amed-klein-hinweis { color: var(--wp--preset--color--grau); margin-top: 1.4rem !important; }
.amed-cta-band .wp-block-group { text-align: center; }
.amed-cta-band .wp-block-buttons { justify-content: center; }
.amed-cta-band p { max-width: 60ch; margin-inline: auto; opacity: .92; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; color: var(--wp--preset--color--petrol); background: transparent; padding: calc(.85rem - 2px) calc(1.6rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--petrol); color: #fff; }

/* Deutsche Rechtstexte auf arabischen Seiten von links nach rechts */
.amed-ltr { direction: ltr; text-align: left; }
